Skip to content

Commit 1894295

Browse files
fix html tags in code blocks
1 parent a911e96 commit 1894295

11 files changed

+1665
-101
lines changed

testdata/TestCommonmark/list_nested/output.asterisks.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383
The <img> tag is used to embed an image.
8484

85-
The <img/> tag is used to embed an image.
85+
The tag is used to embed an image.
8686

8787
```
8888

testdata/TestCommonmark/list_nested/output.dash.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383
The <img> tag is used to embed an image.
8484

85-
The <img/> tag is used to embed an image.
85+
The tag is used to embed an image.
8686

8787
```
8888

testdata/TestCommonmark/list_nested/output.plus.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383
The <img> tag is used to embed an image.
8484

85-
The <img/> tag is used to embed an image.
85+
The tag is used to embed an image.
8686

8787
```
8888

testdata/TestCommonmark/pre_code/goldmark.golden

+10-12
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func Fprint(w io.Writer, a ...interface{}) (n int, err error) {
1515
</code></pre>
1616
<p>When <code>x = 3</code>, that means <code>x + 2 = 5</code></p>
1717
<p>The <code>&lt;img&gt;</code> tag is used to embed an image.</p>
18-
<p>The <code>&lt;img/&gt;</code> tag is used to embed an image.</p>
18+
<p>The `` tag is used to embed an image.</p>
1919
<p>Two variables <code>A</code> <code>B</code></p>
2020
<p>CSS: <code>body { color: yellow; font-size: 16px; }</code></p>
2121
<p>CSS: <code>body { color: yellow; font-size: 16px; }</code></p>
@@ -32,21 +32,19 @@ totally ~~~~~~ normal
3232
<pre><code>
3333
The &lt;img&gt; tag is used to embed an image.
3434

35-
The &lt;img/&gt; tag is used to embed an image.
35+
The tag is used to embed an image.
3636

3737
</code></pre>
3838
<pre><code>
39-
&lt;ul&gt;
40-
&lt;li data-converter-list-prefix=&quot;- &quot;&gt;One&lt;/li&gt;
41-
&lt;li data-converter-list-prefix=&quot;- &quot;&gt;Two&lt;/li&gt;
42-
&lt;li data-converter-list-prefix=&quot;- &quot;&gt;Three&lt;/li&gt;
43-
&lt;/ul&gt;
39+
40+
One
41+
Two
42+
Three
43+
4444

4545
</code></pre>
4646
<pre><code>
47-
&lt;a href=&quot;#Blabla&quot; data-index=&quot;1&quot;&gt;
48-
&lt;img src=&quot;http://bla.bla/img/img.svg&quot; style=&quot;height:auto&quot; width=&quot;200px&quot;/&gt;
49-
&lt;/a&gt;
47+
5048

5149
</code></pre>
5250
<p>We can do this like so:</p>
@@ -98,8 +96,8 @@ input field so the user can, for example, copy or delete the text.</p>
9896
<hr>
9997
<pre><code>
10098
This is the content:
101-
&lt;code&gt;_code_&lt;/code&gt;
102-
&lt;pre&gt;_pre_&lt;/pre&gt;
99+
_code_
100+
_pre_
103101
Cool!
104102

105103
</code></pre>

testdata/TestCommonmark/pre_code/output.fenced_backtick.golden

+10-12
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ When `x = 3`, that means `x + 2 = 5`
2727

2828
The `<img>` tag is used to embed an image.
2929

30-
The `<img/>` tag is used to embed an image.
30+
The `` tag is used to embed an image.
3131

3232
Two variables `A` `B`
3333

@@ -65,25 +65,23 @@ totally ~~~~~~ normal
6565

6666
The <img> tag is used to embed an image.
6767

68-
The <img/> tag is used to embed an image.
68+
The tag is used to embed an image.
6969

7070
```
7171

7272
```
7373

74-
<ul>
75-
<li data-converter-list-prefix="- ">One</li>
76-
<li data-converter-list-prefix="- ">Two</li>
77-
<li data-converter-list-prefix="- ">Three</li>
78-
</ul>
74+
75+
One
76+
Two
77+
Three
78+
7979

8080
```
8181

8282
```
8383

84-
<a href="#Blabla" data-index="1">
85-
<img src="http://bla.bla/img/img.svg" style="height:auto" width="200px"/>
86-
</a>
84+
8785

8886
```
8987

@@ -162,8 +160,8 @@ The **`<pre>`** [HTML](http://example.com/en-US/docs/Web/HTML) element represent
162160
```
163161

164162
This is the content:
165-
<code>_code_</code>
166-
<pre>_pre_</pre>
163+
_code_
164+
_pre_
167165
Cool!
168166

169167
```

testdata/TestCommonmark/pre_code/output.fenced_tilde.golden

+10-12
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ When `x = 3`, that means `x + 2 = 5`
2727

2828
The `<img>` tag is used to embed an image.
2929

30-
The `<img/>` tag is used to embed an image.
30+
The `` tag is used to embed an image.
3131

3232
Two variables `A` `B`
3333

@@ -65,25 +65,23 @@ totally ~~~~~~ normal
6565

6666
The <img> tag is used to embed an image.
6767

68-
The <img/> tag is used to embed an image.
68+
The tag is used to embed an image.
6969

7070
~~~
7171

7272
~~~
7373

74-
<ul>
75-
<li data-converter-list-prefix="- ">One</li>
76-
<li data-converter-list-prefix="- ">Two</li>
77-
<li data-converter-list-prefix="- ">Three</li>
78-
</ul>
74+
75+
One
76+
Two
77+
Three
78+
7979

8080
~~~
8181

8282
~~~
8383

84-
<a href="#Blabla" data-index="1">
85-
<img src="http://bla.bla/img/img.svg" style="height:auto" width="200px"/>
86-
</a>
84+
8785

8886
~~~
8987

@@ -162,8 +160,8 @@ The **`<pre>`** [HTML](http://example.com/en-US/docs/Web/HTML) element represent
162160
~~~
163161

164162
This is the content:
165-
<code>_code_</code>
166-
<pre>_pre_</pre>
163+
_code_
164+
_pre_
167165
Cool!
168166

169167
~~~

testdata/TestCommonmark/pre_code/output.indented.golden

+10-12
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ When `x = 3`, that means `x + 2 = 5`
2727

2828
The `<img>` tag is used to embed an image.
2929

30-
The `<img/>` tag is used to embed an image.
30+
The `` tag is used to embed an image.
3131

3232
Two variables `A` `B`
3333

@@ -65,25 +65,23 @@ totally ~~~~~~ normal
6565

6666
The <img> tag is used to embed an image.
6767

68-
The <img/> tag is used to embed an image.
68+
The tag is used to embed an image.
6969

7070
```
7171

7272
```
7373

74-
<ul>
75-
<li data-converter-list-prefix="- ">One</li>
76-
<li data-converter-list-prefix="- ">Two</li>
77-
<li data-converter-list-prefix="- ">Three</li>
78-
</ul>
74+
75+
One
76+
Two
77+
Three
78+
7979

8080
```
8181

8282
```
8383

84-
<a href="#Blabla" data-index="1">
85-
<img src="http://bla.bla/img/img.svg" style="height:auto" width="200px"/>
86-
</a>
84+
8785

8886
```
8987

@@ -162,8 +160,8 @@ The **`<pre>`** [HTML](http://example.com/en-US/docs/Web/HTML) element represent
162160
```
163161

164162
This is the content:
165-
<code>_code_</code>
166-
<pre>_pre_</pre>
163+
_code_
164+
_pre_
167165
Cool!
168166

169167
```

0 commit comments

Comments
 (0)