Skip to content

Commit acc51e6

Browse files
added test case for content inside a blockquote
1 parent 4dd21ef commit acc51e6

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

testdata/TestCommonmark/blockquote/goldmark.golden

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,13 @@ Next Line</p>
1313
</blockquote>
1414
<p>Back to the first level.</p>
1515
</blockquote>
16+
<blockquote>
17+
<h2>This is a header.</h2>
18+
<ol>
19+
<li>This is the first list item.</li>
20+
<li>This is the second list item.</li>
21+
</ol>
22+
<p>A code block:</p>
23+
<pre><code>return 1 &lt; 2 ? shell_exec('echo $input | $markdown_script') : 0;
24+
</code></pre>
25+
</blockquote>

testdata/TestCommonmark/blockquote/input.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,16 @@
2222
<p>This is a paragraph in a nested blockquote.</p>
2323
</blockquote>
2424
<p>Back to the first level.</p>
25+
</blockquote>
26+
27+
28+
<!--html content inside a blockquote-->
29+
<blockquote>
30+
<h2>This is a header.</h2>
31+
<ol>
32+
<li>This is the first list item.</li>
33+
<li>This is the second list item.</li>
34+
</ol>
35+
<p>A code block:</p>
36+
<pre><code>return 1 &lt; 2 ? shell_exec('echo $input | $markdown_script') : 0;</code></pre>
2537
</blockquote>

testdata/TestCommonmark/blockquote/output.default.golden

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,15 @@
99
>
1010
> > This is a paragraph in a nested blockquote.
1111
>
12-
> Back to the first level.
12+
> Back to the first level.
13+
14+
> ## This is a header.
15+
>
16+
> 1. This is the first list item.
17+
> 2. This is the second list item.
18+
>
19+
> A code block:
20+
>
21+
> ```
22+
> return 1 < 2 ? shell_exec('echo $input | $markdown_script') : 0;
23+
> ```

0 commit comments

Comments
 (0)