aboutsummaryrefslogtreecommitdiff
path: root/test/command/9865.md
blob: 5641629d28c3f17b268e8b5f84af33063008db9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
````
% pandoc
- example 1
- ```
  one
  two
  ```
- list item three
^D
<ul>
<li>example 1</li>
<li><pre><code>one
two</code></pre></li>
<li>list item three</li>
</ul>
````

````
% pandoc
- example 3
- ```
one
two
```
- list item three
^D
<ul>
<li>example 3</li>
<li><pre><code>one
two</code></pre></li>
<li>list item three</li>
</ul>
````

Here is a case that we used to handle differently, but
#9865 aligns pandoc's markdown parser with commonmark in letting
block level structure take precedence over inline level structure.

````
% pandoc
- a <!--

- b

-->
- c
^D
<ul>
<li><p>a &lt;!–</p></li>
<li><p>b</p></li>
</ul>
<p>–&gt; - c</p>
````