pandoc/test/command/3596.md
John MacFarlane 556c6c2c6d Markdown reader: make sure fenced div closers work in lists.
Previously the following failed:

    ::: {.class}
    1. one
    2. two
    :::

and you needed a blank line before the closing `:::`.
2017-10-31 10:57:20 -07:00

59 lines
661 B
Markdown

```
% 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
```