diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2022-07-28 11:15:25 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-07-28 11:28:02 -0700 |
| commit | 5c3423f2e2b441f9fe630538906b5fc1436e04f3 (patch) | |
| tree | 0723ae293d3c21593a0be94a3fd10e4cc385ffd0 /test/Tests | |
| parent | aaf69044b19841854000fe1a27e85279dfa5b750 (diff) | |
DokuWiki reader: support latex plugin and math.
The `tex_math_dollars` extension is now supported for `dokuwiki`
(but off by default).
Content inside `<latex>...</latex>` is parsed as raw LaTeX inline,
and inside `<LATEX>..</LATEX>` as raw LaTeX block.
In addition, this commit changes the behavior of `<php>...</php>` so
that instead of producing a code block, it produces raw HTML
with `<?php ... ?>`.
Closes #8178.
Diffstat (limited to 'test/Tests')
| -rw-r--r-- | test/Tests/Readers/DokuWiki.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Tests/Readers/DokuWiki.hs b/test/Tests/Readers/DokuWiki.hs index d08e72c01..56275d3d2 100644 --- a/test/Tests/Readers/DokuWiki.hs +++ b/test/Tests/Readers/DokuWiki.hs @@ -80,7 +80,7 @@ tests = [ testGroup "inlines" para (rawInline "html" "\nThis is some <span style=\"color:red;font-size:150%;\">inline HTML</span>\n") , "Inline PHP" =: "<php>echo '<p>Hello World</p>';</php>" =?> - para (codeWith ("", ["php"], []) "echo '<p>Hello World</p>';") + para (rawInline "html" "<?php echo '<p>Hello World</p>'; ?>") , "Linebreak" =: T.unlines [ "This is some text with some linebreaks\\\\ Note that the" , "two backslashes are only recognized at the end of a line\\\\" @@ -260,7 +260,7 @@ tests = [ testGroup "inlines" , "echo '<p>Hello World</p>';" , "</PHP>" ] =?> - codeBlockWith ("", ["php"], []) "echo '<p>Hello World</p>';\n" + rawBlock "html" "<?php echo '<p>Hello World</p>';\n ?>" , "Quote" =: T.unlines [ "> foo" , ">no space is required after >" |
