hugo/markup/goldmark
satotake ca68abf0bc
Fix goldmark toc rendering
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
2020-02-22 18:06:30 +01:00
..
goldmark_config
autoid.go
autoid_test.go
convert.go Fix goldmark toc rendering 2020-02-22 18:06:30 +01:00
convert_test.go
render_link.go
toc.go Fix goldmark toc rendering 2020-02-22 18:06:30 +01:00
toc_test.go Fix goldmark toc rendering 2020-02-22 18:06:30 +01:00