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

572 B

Nested bullet lists

% pandoc -f html -t markdown
<ul>
	<li>L1</li>
	<li>L2</li>
	<ul>
		<li>L3.1</li>
		<li>L3.2</li>
	</ul>
  <li>L4</li>
</ul>
^D
- L1
- L2
  - L3.1
  - L3.2
- L4

Nested ordered lists

% pandoc -f html -t markdown
<ol>
	<li>L1</li>
	<li>L2</li>
	<ol>
		<li>L3.1</li>
		<li>L3.2</li>
	</ol>
</ol>
^D
1.  L1
2.  L2
    1.  L3.1
    2.  L3.2

Ordered list nested below an unordered list

% pandoc -f html -t markdown
<ul>
	<li>L1</li>
	<li>L2</li>
	<ol>
		<li>L3.1</li>
		<li>L3.2</li>
	</ol>
</ul>
^D
- L1
- L2
  1.  L3.1
  2.  L3.2