blob: e065a4dbda2d750b515104197ef4adcccb6aa640 (
plain) (
blame)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
<pre><code><Fenced>
</code></pre>
<p>Code block starting and ending with empty lines:</p>
<pre><code><br /><br /><Fenced>
</code></pre>
<p>Indented code block containing fenced code block sample:</p>
<pre><code>~~~
<Fenced>
~~~
</code></pre>
<p>Fenced code block with indented code block sample:</p>
<pre><code>Some text
Indented code block sample code
</code></pre>
<p>Fenced code block with long markers:</p>
<pre><code>Fenced
</code></pre>
<p>Fenced code block with fenced code block markers of different length in it:</p>
<pre><code>In code block
~~~
Still in code block
~~~~~
Still in code block
</code></pre>
<p>Fenced code block with Markdown header and horizontal rule:</p>
<pre><code>#test
---
</code></pre>
<p>Fenced code block with link definitions, footnote definition and
abbreviation definitions:</p>
<pre><code>[example]: http://example.com/
[^1]: Footnote def
*[HTML]: HyperText Markup Language
</code></pre>
<ul>
<li><p>In a list item with smalish indent:</p>
<pre><code>#!/bin/sh
#
# Preload driver binary
LD_PRELOAD=libusb-driver.so $0.bin $*
</code></pre>
</li>
</ul>
<p>With HTML content.</p>
<pre><code><b>bold</b>
</code></pre>
<p>Bug with block level elements in this case:</p>
<pre><code> <div>
</div>
</code></pre>
<p>Indented code block of a fenced code block:</p>
<pre><code>~~~
haha!
~~~
</code></pre>
<p>With class:</p>
<pre><code class="html"><b>bold</b>
</code></pre>
<pre><code class="html"><b>bold</b>
</code></pre>
<pre><code class="html"><b>bold</b>
</code></pre>
<pre><code class="html"><b>bold</b>
</code></pre>
<p>With extra attribute block:</p>
<pre><code class="html"><b>bold</b>
</code></pre>
<pre><code class="html" id="codeid"><b>bold</b>
</code></pre>
<pre><code class="html bold"><div>
</code></pre>
<pre><code class="html" id="codeid"></div>
</code></pre>
|