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
TOC doesn't contain <code> anymore (0.60) #6736
Comments
So, in Hugo 0.61 it behaved differently? |
Sorry, I answered from my own perspective. 🤦♂️ To answer it properly, the 'issue' first happened in:
And the last good version was:
|
Jos512
changed the title
TOC doesn't contain <code> anymore (0.62.2)
TOC doesn't contain <code> anymore (0.60)
Jan 10, 2020
satotake
added a commit
to satotake/hugo
that referenced
this issue
Feb 22, 2020
Fixes gohugoio#6736 Fixes gohugoio#6809 Previously gordmark-based TOC renderes only `KindText` and `KindString` This PR expands target node with goldmark's renderer I am not sure of what are expected results as TOC contents in some (rare) cases but Blackfriday's behaviours are fundamentally respected. For example, - image `[image text](link)` is rendered as `<img>` tag - GFM AutoLink `gohugo.io` is rendered as text
bep
pushed a commit
that referenced
this issue
Feb 22, 2020
Previously gordmark-based TOC renderes only `KindText` and `KindString` This commit expands target node with Goldmark's renderer I am not sure of what are expected results as TOC contents in some (rare) cases but Blackfriday's behaviours are fundamentally respected. For example, - image `[image text](link)` is rendered as `<img>` tag - GFM AutoLink `gohugo.io` is rendered as text * Render AutoLink as <a> tag as Blackfriday does Fixes #6736 Fixes #6809
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. |
Sign up for free
to 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, it's actually a new issue.
I could not find in the release notes documented changes to TOC's
<code>
behaviour.Before
Earlier, when our Markdown headings contained code, that code would appear as
<code>
in the TOC.For example:
Renders the following HTML on Hugo 0.55.6:
Note the
<code>
around the words with a backtick.Now
With Hugo 0.62.2,
<code>
doesn't appear in the TOC anymore. For example, the same Markdown now makes this TOC:Repository to replicate
See https://github.com/Jos512/hugo-toc-issue
The text was updated successfully, but these errors were encountered: