pandoc/test/command/4527.md
John MacFarlane 9b5ec100e5 Markdown writer: update escaping rules for \.
We now escape `\` only if `raw_tex` is enabled or
it is followed by a non-alphanumeric.
2022-03-07 10:46:07 -08:00

23 lines
263 B
Markdown

This command comes through as regular text:
```
% pandoc -f latex+raw_tex -t native
\maketitle
^D
[ RawBlock (Format "latex") "\\maketitle" ]
```
```
% pandoc -f latex -t native
\maketitle
^D
[]
```
```
% pandoc -f latex -t rst
\maketitle
Hello.
^D
Hello.
```