]> git.maquefel.me Git - brevno-suite/hugo/commit
Fix auto generated header ids so they don't contain e.g. hyperlink destinations ...
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 16 Feb 2025 20:52:46 +0000 (21:52 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 17 Feb 2025 11:23:49 +0000 (12:23 +0100)
commit24cc25552f607eccf7f7fefff3d6a7bd8175c828
tree99f5df3a68f590ab3f9433d423400c7dba460977
parenta2ca95629a0354520dca905184cab89e54d48ed3
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
hugolib/content_render_hooks_test.go
markup/goldmark/goldmark_integration_test.go
markup/goldmark/internal/extensions/attributes/attributes.go
markup/goldmark/internal/extensions/attributes/attributes_integration_test.go
markup/goldmark/internal/render/context.go
markup/goldmark/toc_integration_test.go