aboutsummaryrefslogtreecommitdiff
path: root/test/command/5627.md
blob: 41fec0038a945216b5b48f8a07b97357b8d6f869 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
```
% pandoc -t html
## Example

1. One
2. Two `-->something<!--`
3. Three

~~~html
--><!--<script>alert('Escaped!')</script>
~~~

~~~html
Something
~~~
^D
<h2 id="example">Example</h2>
<ol type="1">
<li>One</li>
<li>Two <code>--&gt;something&lt;!--</code></li>
<li>Three</li>
</ol>
<div class="sourceCode" id="cb1"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true"></a>--&gt;<span class="co">&lt;!--&lt;script&gt;alert(&#39;Escaped!&#39;)&lt;/script&gt;</span></span></code></pre></div>
<div class="sourceCode" id="cb2"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true"></a>Something</span></code></pre></div>
```

```
% pandoc -t html
## Example 2

- `-->something<!--`
- `-->something<!--`
- bye `-->something else<!--`

~~~html
--><!--<script>alert('Escaped!')</script>
~~~

~~~html
Something
~~~
^D
<h2 id="example-2">Example 2</h2>
<ul>
<li><code>--&gt;something&lt;!--</code></li>
<li><code>--&gt;something&lt;!--</code></li>
<li>bye <code>--&gt;something else&lt;!--</code></li>
</ul>
<div class="sourceCode" id="cb1"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true"></a>--&gt;<span class="co">&lt;!--&lt;script&gt;alert(&#39;Escaped!&#39;)&lt;/script&gt;</span></span></code></pre></div>
<div class="sourceCode" id="cb2"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true"></a>Something</span></code></pre></div>
```

```
% pandoc -t html
## Example 3

1. `-->one<!--`
5. bye `-->two <!--`
3. ` three, not in block
1. four, not in block  `
2. five
5. six
6. seven `
-  separate unordered list `
42. forty-two, separate ordered list
^D
<h2 id="example-3">Example 3</h2>
<ol type="1">
<li><code>--&gt;one&lt;!--</code></li>
<li>bye <code>--&gt;two &lt;!--</code></li>
<li>` three, not in block</li>
<li>four, not in block `</li>
<li>five</li>
<li>six</li>
<li>seven `</li>
</ol>
<ul>
<li>separate unordered list `</li>
</ul>
<ol start="42" type="1">
<li>forty-two, separate ordered list</li>
</ol>
```