diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-10-07 12:21:43 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-10-07 12:21:43 -0700 |
commit | b806bff5b44abff96a1400f23448f986d238bff1 (patch) | |
tree | 52b7bd16bbd3e7023da1b0f4d809dca5efeca5d8 /test/command/4527.md | |
parent | 9b481c8787f2c6e69bce3bb264b4d4f1fe8ed78e (diff) | |
download | pandoc-b806bff5b44abff96a1400f23448f986d238bff1.tar.gz |
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.
Diffstat (limited to 'test/command/4527.md')
-rw-r--r-- | test/command/4527.md | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/test/command/4527.md b/test/command/4527.md index 984333559..2f54fca60 100644 --- a/test/command/4527.md +++ b/test/command/4527.md @@ -1,7 +1,7 @@ # Raw TeX blocks in CommonMark with and without raw_tex ``` -% pandoc -f latex -t commonmark-raw_tex +% pandoc -f latex+raw_tex -t commonmark-raw_tex \someunknowncommand Hello. @@ -10,7 +10,7 @@ Hello. ``` ``` -% pandoc -f latex -t commonmark+raw_tex +% pandoc -f latex+raw_tex -t commonmark+raw_tex \someunknowncommand Hello. @@ -19,3 +19,18 @@ Hello. Hello. ``` + +``` +% pandoc -f latex -t native +\maketitle +^D +[] +``` + +``` +% pandoc -f latex -t rst +\maketitle +Hello. +^D +Hello. +``` |