diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2025-02-16 21:52:46 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2025-02-17 12:23:49 +0100 |
commit | 24cc25552f607eccf7f7fefff3d6a7bd8175c828 (patch) | |
tree | 99f5df3a68f590ab3f9433d423400c7dba460977 /markup/goldmark/toc_integration_test.go | |
parent | a2ca95629a0354520dca905184cab89e54d48ed3 (diff) | |
download | hugo-24cc25552f607eccf7f7fefff3d6a7bd8175c828.tar.gz hugo-24cc25552f607eccf7f7fefff3d6a7bd8175c828.zip |
Fix auto generated header ids so they don't contain e.g. hyperlink destinations (note)
This makes the header ids match the newly added dt ids.
Also make sure newlines are preserved in hooks' `.PlainText`.
Fixes #13405
Fixes #13410
Diffstat (limited to 'markup/goldmark/toc_integration_test.go')
-rw-r--r-- | markup/goldmark/toc_integration_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markup/goldmark/toc_integration_test.go b/markup/goldmark/toc_integration_test.go index 3b48dac6c..7ce2e8664 100644 --- a/markup/goldmark/toc_integration_test.go +++ b/markup/goldmark/toc_integration_test.go @@ -239,12 +239,12 @@ title: p7 (emoji) // image b.AssertFileContent("public/p3/index.html", ` -<li><a href="#an-image-kittenajpg">An image <img src="a.jpg" alt="kitten" /></a></li> +<li><a href="#an-image-kitten">An image <img src="a.jpg" alt="kitten" /></a></li> `) // raw html b.AssertFileContent("public/p4/index.html", ` -<li><a href="#some-spanrawspan-html">Some <span>raw</span> HTML</a></li> +<li><a href="#some-raw-html">Some <span>raw</span> HTML</a></li> `) // typographer |