mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-02 21:55:44 +00:00
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.
60 lines
629 B
Markdown
60 lines
629 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
|
|
|
|
```
|