diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-12-27 11:46:22 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-12-27 13:08:22 -0800 |
commit | 82f44592ae1f2253a5f7ca52d5d3a2299e9bc7a9 (patch) | |
tree | 9985343298b5584e11c1ba2bf30925a426e4e09d /test/command | |
parent | ea2c5152ec81758fa3ee697c3d884843020a1172 (diff) | |
download | pandoc-82f44592ae1f2253a5f7ca52d5d3a2299e9bc7a9.tar.gz |
Fix parsing bug affected indented code after raw HTML.
Closes #6009, #5360.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/5360.md | 19 | ||||
-rw-r--r-- | test/command/6009.md | 18 |
2 files changed, 37 insertions, 0 deletions
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} +<table> + <tr> + <td>hi</td> + </tr> +</table> +::: +^D +[Div ("",["foo"],[]) + [RawBlock (Format "html") "<table>" + ,RawBlock (Format "html") "<tr>" + ,RawBlock (Format "html") "<td>" + ,Plain [Str "hi"] + ,RawBlock (Format "html") "</td>" + ,RawBlock (Format "html") "</tr>" + ,RawBlock (Format "html") "</table>"]] +``` 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 + <tr> + <td> + </td> + </tr> + +x + + y +^D +[RawBlock (Format "html") "<tr>" +,RawBlock (Format "html") "<td>" +,RawBlock (Format "html") "</td>" +,RawBlock (Format "html") "</tr>" +,Para [Str "x"] +,CodeBlock ("",[],[]) "y"] +``` |