pandoc/test/command/5285.md
John MacFarlane ba05e1ea02 Shared.compactify: Avoid mixed lists.
This improves on the original fix to #5285 by preventing
other mixed lists (lists with a mix of Plain and Para
elements) that were allowed given the original fix.
2019-02-25 17:33:54 -08:00

308 B

% pandoc -t native
- a

  b
- a

- b
^D
[BulletList
 [[Para [Str "a"]
  ,Para [Str "b"]]
 ,[Para [Str "a"]]
 ,[Para [Str "b"]]]]
% pandoc -t native
- foo

  foo
- foo

  > foo
^D
[BulletList
 [[Para [Str "foo"]
  ,Para [Str "foo"]]
 ,[Para [Str "foo"]
  ,BlockQuote
   [Para [Str "foo"]]]]]