From 51a46b7e31c92c717ca4778df96535b0e492babe Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 23 Apr 2017 10:55:16 +0200 Subject: HTML reader: Revise treatment of li with id attribute. Previously we always added an empty div before the list item, but this created problems with spacing in tight lists. Now we do this: If the list item contents begin with a Plain block, we modify the Plain block by adding a Span around its contents. Otherwise, we add a Div around the contents of the list item (instead of adding an empty Div to the beginning, as before). Closes #3596. --- test/command/3596.md | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 test/command/3596.md (limited to 'test') diff --git a/test/command/3596.md b/test/command/3596.md new file mode 100644 index 000000000..a064ca632 --- /dev/null +++ b/test/command/3596.md @@ -0,0 +1,61 @@ +``` +% pandoc -f html -t markdown-raw_html-bracketed_spans-native_spans + +^D +- foo +- bar +- baz +``` + +``` +% pandoc -f html -t markdown-raw_html-bracketed_spans-native_spans + +^D +- foo +- bar + - subbar +- baz +``` + + +``` +% pandoc -f html -t markdown + +^D +- foo +- [bar]{#id} +- baz +``` + + +``` +% pandoc -f html -t markdown + +^D +- foo + +-
+ + bar + +
+ +- baz + +``` -- cgit v1.2.3