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 markup/goldmark: Add an optional Blackfriday auto ID strategy 2020-01-05 11:56:05 +01:00
autoid.go markup/goldmark: Adjust auto ID space handling 2020-01-05 15:58:14 +01:00
autoid_test.go markup/goldmark: Adjust auto ID space handling 2020-01-05 15:58:14 +01:00
convert.go Fix goldmark toc rendering 2020-02-22 18:06:30 +01:00
convert_test.go deps: Update Goldmark to v1.1.21 2020-01-15 12:07:25 +01:00
render_link.go Preserve HTML Text for image render hooks 2019-12-19 19:02:03 +01:00
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