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
Fixesgohugoio#6736Fixesgohugoio#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
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#6736Fixes#6809
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Invaild TOC HTML for goldmark
TOC entries are not properly escaped leading to invalid HTML for "goldmark" Markdown parser.
For the following Markdown heading
the output TOC entry has the (not properly escaped) form
while the heading is properly escaped
For "blackFriday" markdown parser both TOC entry and the heading are
properly escaped.
The text was updated successfully, but these errors were encountered: