From 47537d26db29b9dd0810d039933497d4db4ed813 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 8 Feb 2019 23:16:01 -0800 Subject: Improve tight/loose list handling. Closes #5285. Previously the algorithm allowed list items with a mix of Para and Plain, which is never wanted. compactify in T.P.Shared has been modified so that, if a list's items contain (at the top level) Para elements (aside from perhaps at the very end), ALL Plains are converted to Paras. --- test/command/5285.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/command/5285.md (limited to 'test/command') diff --git a/test/command/5285.md b/test/command/5285.md new file mode 100644 index 000000000..780812761 --- /dev/null +++ b/test/command/5285.md @@ -0,0 +1,15 @@ +``` +% pandoc -t native +- a + + b +- a + +- b +^D +[BulletList + [[Para [Str "a"] + ,Para [Str "b"]] + ,[Para [Str "a"]] + ,[Para [Str "b"]]]] +``` -- cgit v1.2.3