pandoc/test/command/8178.md
John MacFarlane 5c3423f2e2 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.
2022-07-28 11:28:02 -07:00

25 lines
395 B
Markdown

```
% pandoc -f dokuwiki -t native
<latex>$\sum_{\substack{(i,j) \in I^2 \i \neq j}}$</latex>
^D
[ Para
[ RawInline
(Format "latex")
"$\\sum_{\\substack{(i,j) \\in I^2 \\i \\neq j}}$"
]
]
```
```
% pandoc -f dokuwiki+tex_math_dollars -t native
$mc^2$
^D
[ Para [ Math InlineMath "mc^2" ] ]
```
```
% pandoc -f dokuwiki -t native
$mc^2$
^D
[ Para [ Str "$mc^2$" ] ]
```