aboutsummaryrefslogtreecommitdiffhomepage
path: root/markup
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2023-11-29 14:03:40 -0800
committerBjørn Erik Pedersen <[email protected]>2023-11-30 10:13:40 +0100
commitbfc325f561a10451cd3cd489c95211558b597298 (patch)
tree1bdab9c618b8469f8f7433730b03fc5bc96f9a56 /markup
parent36a60f65d06324d0fd9ccc2bfe2ad9a78743f5dc (diff)
downloadhugo-bfc325f561a10451cd3cd489c95211558b597298.tar.gz
hugo-bfc325f561a10451cd3cd489c95211558b597298.zip
deps: Update github.com/tdewolff/minify/v2 v2.20.7 => v2.20.8
Closes #5748
Diffstat (limited to 'markup')
-rw-r--r--markup/goldmark/integration_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/markup/goldmark/integration_test.go b/markup/goldmark/integration_test.go
index fdcbf4975..a2bf16374 100644
--- a/markup/goldmark/integration_test.go
+++ b/markup/goldmark/integration_test.go
@@ -689,3 +689,25 @@ title: "p1"
b.AssertFileContentExact("public/p1/index.html", "<p>:x:</p>")
}
+
+// Issue #5748
+func TestGoldmarkTemplateDelims(t *testing.T) {
+ t.Parallel()
+
+ files := `
+-- config.toml --
+[minify]
+ minifyOutput = true
+[minify.tdewolff.html]
+ templateDelims = ["<?php","?>"]
+-- layouts/index.html --
+<div class="foo">
+{{ safeHTML "<?php" }}
+echo "hello";
+{{ safeHTML "?>" }}
+</div>
+`
+
+ b := hugolib.Test(t, files)
+ b.AssertFileContent("public/index.html", "<div class=foo><?php\necho \"hello\";\n?>\n</div>")
+}