]> git.maquefel.me Git - brevno-suite/hugo/commit
markup/goldmark: Enhance footnote extension with auto-prefixing option
authorJoe Mooring <joe.mooring@veriphor.com>
Sat, 13 Sep 2025 03:19:18 +0000 (20:19 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 27 Sep 2025 16:16:42 +0000 (18:16 +0200)
commit47678d8cbd9a4151ee183bc5601f043e59cc3459
tree8863b7aac91441097ea1f53cbfa064b6750edf57
parent18b9b6488bb3667f1d0649de2d2a9a5c6d62ca0a
markup/goldmark: Enhance footnote extension with auto-prefixing option

This commit introduces a new option, enableAutoIDPrefix, to the Goldmark
footnote extension. When enabled, it prepends a unique prefix to
footnote IDs, preventing clashes when multiple documents are rendered
together. This prefix is unique to each logical path, which means that
the prefix is not unique across content dimensions such as language.
This change also refactors the extension's configuration from a boolean
to a struct.

Closes #8045
docs/data/docs.yaml
hugolib/page__meta.go
markup/goldmark/convert.go
markup/goldmark/goldmark_config/config.go
markup/goldmark/goldmark_integration_test.go
markup/markup_config/config.go
markup/markup_config/config_test.go