pandoc/test/command/4527.md
John MacFarlane b806bff5b4 LaTeX reader: fix bugs omitting raw tex.
The default is `-raw_tex`, so no raw tex should result
unless we explicitly say `+raw_tex`.  Previously some
raw commands did make it through.

Closes #4527.
2018-10-07 12:21:43 -07:00

36 lines
383 B
Markdown

# Raw TeX blocks in CommonMark with and without raw_tex
```
% pandoc -f latex+raw_tex -t commonmark-raw_tex
\someunknowncommand
Hello.
^D
Hello.
```
```
% pandoc -f latex+raw_tex -t commonmark+raw_tex
\someunknowncommand
Hello.
^D
\someunknowncommand
Hello.
```
```
% pandoc -f latex -t native
\maketitle
^D
[]
```
```
% pandoc -f latex -t rst
\maketitle
Hello.
^D
Hello.
```