deps: Update github.com/tdewolff/minify/v2 v2.20.7 => v2.20.8

Closes #5748
This commit is contained in:
Joe Mooring
2023-11-29 14:03:40 -08:00
committed by Bjørn Erik Pedersen
parent 36a60f65d0
commit bfc325f561
4 changed files with 58 additions and 6 deletions

View File

@@ -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>")
}