You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…stinations (note)
This makes the header ids match the newly added dt ids.
Also make sure newlines are preserved in hooks' `.PlainText`.
Fixesgohugoio#13405Fixesgohugoio#13410
…stinations (note)
This makes the header ids match the newly added dt ids.
Also make sure newlines are preserved in hooks' `.PlainText`.
Fixes#13405Fixes#13410
Previously reported on the Kayal theme repo, and then on the Hugo forum.
Related to #13401, #13404.
Describe the bug
Header anchors contain the destinations of hyperlinks in the header. This makes them long and unreadable.
This forces me to avoid hyperlinks in headers, which by themselves are functional.
Reproducible example
## Example [hyperlink](https://example.com/) in a header
generates
where the anchor at the right is
#example-hyperlinkhttpsexamplecom-in-a-header
Expected behavior
I expected a short and pretty anchor, containing only the visible text:
#example-hyperlink-in-a-header
The same as the one generated from a non-hyperlinked version of the same header:
## Example hyperlink in a header
Desktop (please complete the following information):
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes. Before reporting, I downloaded Hugo 0.143.1 from Github Releases and tried it too.
The text was updated successfully, but these errors were encountered: