aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-02-06 23:33:23 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-02-06 23:33:23 +0100
commit47a16065c44eb5028ca9b9e86993fe880ef2a37d (patch)
tree87187306f99b0782fb7709a57491c774a5a168a3 /test
parentd1c16c4785b177fc71358595ef8e3ac9bb75b4ba (diff)
downloadpandoc-47a16065c44eb5028ca9b9e86993fe880ef2a37d.tar.gz
Removed --parse-raw and readerParseRaw.
These were confusing. Now we rely on the +raw_tex or +raw_html extension with latex or html input. Thus, instead of --parse-raw -f latex we use -f latex+raw_tex and instead of --parse-raw -f html we use -f html+raw_html
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Old.hs2
-rw-r--r--test/command/parse-raw.md27
2 files changed, 28 insertions, 1 deletions
diff --git a/test/Tests/Old.hs b/test/Tests/Old.hs
index ba8ea8240..d9877c8a0 100644
--- a/test/Tests/Old.hs
+++ b/test/Tests/Old.hs
@@ -46,7 +46,7 @@ tests = [ testGroup "markdown"
, testGroup "latex"
[ testGroup "writer" (writerTests "latex" ++ lhsWriterTests "latex")
, testGroup "reader"
- [ test "basic" ["-r", "latex", "-w", "native", "-s", "-R"]
+ [ test "basic" ["-r", "latex+raw_tex", "-w", "native", "-s"]
"latex-reader.latex" "latex-reader.native"
, lhsReaderTest "latex+lhs"
]
diff --git a/test/command/parse-raw.md b/test/command/parse-raw.md
new file mode 100644
index 000000000..f4e493c69
--- /dev/null
+++ b/test/command/parse-raw.md
@@ -0,0 +1,27 @@
+```
+% pandoc -f latex+raw_tex -t markdown
+\emph{Hi \foo{there}}
+^D
+*Hi \foo{there}*
+```
+
+```
+% pandoc -f latex -t markdown
+\emph{Hi \foo{there}}
+^D
+*Hi*
+```
+
+```
+% pandoc -f html+raw_html -t markdown
+<em>Hi <blink>there</blink></em>
+^D
+*Hi <blink>there</blink>*
+```
+
+```
+% pandoc -f html -t markdown
+<em>Hi <blink>there</blink></em>
+^D
+*Hi there*
+```