summaryrefslogtreecommitdiffstats
path: root/markup
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-12 10:45:31 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-12 11:24:11 +0100
commitb37183e48d6ba6fe4df9d54d62f377f08db834e7 (patch)
tree8a13bb08f5ca76154322c846668742a95dddf8a1 /markup
parent04ccde3e940cf817b0ad400425599742f641575e (diff)
deps: Update github.com/yuin/goldmark v1.4.9 => v1.4.10
Fixes #9658
Diffstat (limited to 'markup')
-rw-r--r--markup/goldmark/integration_test.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/markup/goldmark/integration_test.go b/markup/goldmark/integration_test.go
index 064ffb85d..e1d1445ee 100644
--- a/markup/goldmark/integration_test.go
+++ b/markup/goldmark/integration_test.go
@@ -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>",
)
}