Skip to content

Commit aa17cea

Browse files
committed
Code blocks
1 parent 4d990d9 commit aa17cea

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

tests/md2html/fixtures/basic-new.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@
77
<p>Text for first section</p>
88
<section><h2>Heading 3</h2>
99
<p>Text for first subsection</p>
10+
<pre class="nohighlight"><code>
11+
<span class="hljs-punctuation">{</span>
12+
<span class="hljs-attr">&quot;foo&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-literal"><span class="hljs-keyword">true</span></span>
13+
<span class="hljs-punctuation">}</span>
14+
</code></pre>
15+
<pre class="nohighlight"><code>
16+
text/plain
17+
</code></pre>
18+
<pre class="highlight "><code>
19+
no language
20+
</code></pre>
1021
<table>
1122
<thead>
1223
<tr>

tests/md2html/fixtures/basic-new.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ Text for first section
1414

1515
Text for first subsection
1616

17+
```json
18+
{
19+
"foo": true
20+
}
21+
```
22+
23+
```text
24+
text/plain
25+
```
26+
27+
```
28+
no language
29+
```
1730

1831
Version | Date
1932
--------|-----------

0 commit comments

Comments
 (0)