Files
John MacFarlane 0fe6254535 Markdown writer: omit extra space after bullets.
We used to insert extra spaces to ensure that the content respected
the four-space rule.  That is not really necessary now, since pandoc's
markdown and most markdowns don't follow the four-space rule.

Those who want the old behavior can obtain it by using
`-t markdown+four_space_rule`.

Closes #7172.
2025-02-12 09:41:20 -08:00

629 B

% pandoc -f html -t markdown-raw_html-bracketed_spans-native_spans
<ul>
<li>foo</li>
<li id="id">bar</li>
<li>baz</li>
</ul>
^D
- foo
- bar
- baz
% pandoc -f html -t markdown-raw_html-bracketed_spans-native_spans
<ul>
<li>foo</li>
<li id="id">bar<ul><li>subbar</li></ul></li>
<li>baz</li>
</ul>
^D
- foo
- bar
  - subbar
- baz
% pandoc -f html -t markdown
<ul>
<li>foo</li>
<li id="id">bar</li>
<li>baz</li>
</ul>
^D
- foo
- [bar]{#id}
- baz
% pandoc -f html -t markdown
<ul>
<li><p>foo</p></li>
<li id="id"><p>bar</p></li>
<li><p>baz</p></li>
</ul>
^D
- foo

- ::: {#id}
  bar
  :::

- baz