From 82f44592ae1f2253a5f7ca52d5d3a2299e9bc7a9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 27 Dec 2019 11:46:22 -0800 Subject: Fix parsing bug affected indented code after raw HTML. Closes #6009, #5360. --- test/command/5360.md | 19 +++++++++++++++++++ test/command/6009.md | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 test/command/5360.md create mode 100644 test/command/6009.md (limited to 'test/command') diff --git a/test/command/5360.md b/test/command/5360.md new file mode 100644 index 000000000..924c1ea28 --- /dev/null +++ b/test/command/5360.md @@ -0,0 +1,19 @@ +``` +% pandoc -t native +::: {.foo} + + + + +
hi
+::: +^D +[Div ("",["foo"],[]) + [RawBlock (Format "html") "" + ,RawBlock (Format "html") "" + ,RawBlock (Format "html") "" + ,RawBlock (Format "html") "" + ,RawBlock (Format "html") "
" + ,Plain [Str "hi"] + ,RawBlock (Format "html") "
"]] +``` diff --git a/test/command/6009.md b/test/command/6009.md new file mode 100644 index 000000000..ed6b46cbb --- /dev/null +++ b/test/command/6009.md @@ -0,0 +1,18 @@ +``` +% pandoc -t native + + + + + +x + + y +^D +[RawBlock (Format "html") "" +,RawBlock (Format "html") "" +,RawBlock (Format "html") "" +,RawBlock (Format "html") "" +,Para [Str "x"] +,CodeBlock ("",[],[]) "y"] +``` -- cgit v1.2.3