mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
deps: Update github.com/tdewolff/minify/v2 v2.20.7 => v2.20.8
Closes #5748
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
36a60f65d0
commit
bfc325f561
@@ -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>")
|
||||
}
|
||||
|
Reference in New Issue
Block a user