diff options
author | Joe Mooring <[email protected]> | 2023-11-29 14:03:40 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-11-30 10:13:40 +0100 |
commit | bfc325f561a10451cd3cd489c95211558b597298 (patch) | |
tree | 1bdab9c618b8469f8f7433730b03fc5bc96f9a56 /markup | |
parent | 36a60f65d06324d0fd9ccc2bfe2ad9a78743f5dc (diff) | |
download | hugo-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.go | 22 |
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>") +} |