diff options
| author | Albert Krewinkel <[email protected]> | 2022-08-03 13:04:45 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2022-08-03 15:00:35 +0200 |
| commit | 0d7f80c87ff3948669356c7963118d90533cd519 (patch) | |
| tree | 1fd97e1b61625587d6aa3623fc7fffaf63408d8c /test/command | |
| parent | b306f2e1fdf0cd340e49e3be91e267f456aefa0e (diff) | |
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
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/8150.md | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/test/command/8150.md b/test/command/8150.md new file mode 100644 index 000000000..2feded961 --- /dev/null +++ b/test/command/8150.md @@ -0,0 +1,62 @@ +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 +``` |
