pandoc/test/command/8150.md
Albert Krewinkel 0d7f80c87f
HTML reader: allow sublists that are not marked as items.
The HTML standard requires all list items to be marked with a `<li>`
tag, but some tools fail to do so for sublists. The reader now accepts
these unwrapped lists as sublists.

Closes: #8150
2022-08-03 15:00:35 +02:00

62 lines
601 B
Markdown

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
3. 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
```