deps: Update github.com/yuin/goldmark v1.4.9 => v1.4.10

Fixes #9658
This commit is contained in:
Bjørn Erik Pedersen
2022-03-12 10:45:31 +01:00
parent 04ccde3e94
commit b37183e48d
3 changed files with 15 additions and 3 deletions

View File

@@ -536,8 +536,7 @@ Link https procol: https://www.example.org
}
}
// Issue 9650
func TestRenderingOfHtmlComments(t *testing.T) {
func TestGoldmarkBugs(t *testing.T) {
t.Parallel()
files := `
@@ -548,8 +547,16 @@ unsafe = true
---
title: "p1"
---
## Issue 9650
a <!-- b --> c
## Issue 9658
- This is a list item <!-- Comment: an innocent-looking comment -->
-- layouts/_default/single.html --
{{ .Content }}
`
@@ -562,6 +569,9 @@ a <!-- b --> c
).Build()
b.AssertFileContentExact("public/p1/index.html",
// Issue 9650
"<p>a <!-- b --> c</p>",
// Issue 9658 (crash)
"<li>This is a list item <!-- Comment: an innocent-looking comment --></li>",
)
}