Skip to content

Commit

Permalink
add code block in list test to golden files
Browse files Browse the repository at this point in the history
  • Loading branch information
kinensake committed Jan 13, 2025
1 parent 6a359b1 commit 87f20d3
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 41 deletions.
41 changes: 0 additions & 41 deletions plugin/commonmark/render_list_test.go

This file was deleted.

32 changes: 32 additions & 0 deletions plugin/commonmark/testdata/GoldenFiles/list.in.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,38 @@
</ul>


<hr />


<!-- with code block in item -->
<ul>
<li>
item:
<pre>line 1
line 2</pre>
</li>
<li>item 2</li>
</ul>

<!-- with code block in nested item -->
<ul>
<li>
item 1:
<ul>
<li>
nested item 1:
<pre>line 1
line 2</pre>
</li>
<li>nested item 2</li>
</ul>
</li>
<li>item 2</li>
</ul>


<hr />


<!--------------------------------------
Special Characters
Expand Down
29 changes: 29 additions & 0 deletions plugin/commonmark/testdata/GoldenFiles/list.out.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,35 @@ text between

End Line

* * *

<!-- with code block in item -->

- item:

```
line 1
line 2
```
- item 2

<!--THE END-->

<!-- with code block in nested item -->

- item 1:

- nested item 1:

```
line 1
line 2
```
- nested item 2
- item 2
* * *
<!--------------------------------------
Special Characters
--------------------------------------->
Expand Down

0 comments on commit 87f20d3

Please sign in to comment.