From ac08a887cf83ce3d08b56447a1dbfc8aec4cd1a3 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 20 Jan 2018 14:43:33 -0800 Subject: Markdown reader: Fix parsing bug with nested fenced divs. Closes #4281. Previously we allowed "nonindent spaces" before the opening and closing `:::`, but this interfered with list parsing, so now we require the fences to be flush with the margin of the containing block. --- test/command/4281.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/command/4281.md (limited to 'test') diff --git a/test/command/4281.md b/test/command/4281.md new file mode 100644 index 000000000..9806e8178 --- /dev/null +++ b/test/command/4281.md @@ -0,0 +1,18 @@ +``` +% pandoc -t native +:::: {.a} +- ::: {.b} + text + ::: + ::: {.c} + text + ::: +:::: +^D +[Div ("",["a"],[]) + [BulletList + [[Div ("",["b"],[]) + [Para [Str "text"]] + ,Div ("",["c"],[]) + [Para [Str "text"]]]]]] +``` -- cgit v1.2.3