-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strikethrough in markdown heading is not rendered in TOC entry #7169
Comments
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. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Configure the TOC (TableOfContents, toc.go) goldmark renderer to always enable the Strikethrough extension. This allows handling ast.KindStrikethrough within an AST node. Fixes gohugoio#7169 Fixes gohugoio#8087 Fixes gohugoio#11783
Configure the TOC (TableOfContents, toc.go) goldmark renderer to always enable the Strikethrough extension. This allows handling ast.KindStrikethrough within an AST node. Fixes gohugoio#7169 Fixes gohugoio#8087 Fixes gohugoio#11783
Configure the TOC (TableOfContents, toc.go) goldmark renderer to always enable the Strikethrough extension. This allows handling ast.KindStrikethrough within an AST node. The last test in TestEscapeToc() is corrected to not expect <div> elements to be included in the TOC renderer output. Fixes gohugoio#7169 Fixes gohugoio#8087 Fixes gohugoio#11783
Configure the TOC (TableOfContents, toc.go) goldmark renderer to always enable the Strikethrough extension. This allows handling ast.KindStrikethrough within an AST node. The last test in TestEscapeToc() is corrected to not expect <div> elements to be included in the TOC renderer output. Fixes gohugoio#7169 Fixes gohugoio#8087 Fixes gohugoio#11783
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 gohugoio#7169 Fixes gohugoio#11783 Fixes gohugoio#12022
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: