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
What version of Hugo are you using (hugo version)?
$ hugo version
Hugo Static Site Generator v0.68.3-157669A0/extended darwin/amd64 BuildDate: 2020-03-24T12:11:24Z
Does this issue reproduce with the latest release?
Yes
Given a heading that contains strikethrough markdown, and TableOfContents is being rendered, the title of the heading does not reflect the strikethrough markdown - whereas it does for strong and italic markdown.
Example of markdown: ## Spice Up Your ~~Life~~ Python :snake:
Appears in ToC as below.
Whereas it is rendered fine as a heading.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.
jmooring
changed the title
Strikethrough Markdown Not Reflected in ToC Heading Text
Strikethrough in markdown heading is not rendered in TOC entry
Feb 10, 2024
Configure the TOC (TableOfContents, toc.go) goldmark renderer to always
enable the Strikethrough and Emoji extensions. This allows handling
ast.KindStrikethrough and ast.KindEmoji AST nodes when rendering the TOC.
Fixes#7169Fixes#11783Fixes#12022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Given a heading that contains strikethrough markdown, and TableOfContents is being rendered, the title of the heading does not reflect the strikethrough markdown - whereas it does for strong and italic markdown.
Example of markdown:
## Spice Up Your ~~Life~~ Python :snake:
Appears in ToC as below.
Whereas it is rendered fine as a heading.
The text was updated successfully, but these errors were encountered: