hugo/markup
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
..
asciidoc Add render template hooks for links and images 2019-12-18 11:44:40 +01:00
blackfriday markup/goldmark: Add an optional Blackfriday auto ID strategy 2020-01-05 11:56:05 +01:00
converter Fix RenderString for pages without content 2020-02-18 14:08:59 +01:00
goldmark Fix goldmark toc rendering 2020-02-22 18:06:30 +01:00
highlight markup/highlight: Fix chroma highlight 2020-02-17 14:59:26 +01:00
internal Add Goldmark as the new default markdown handler 2019-11-23 14:12:24 +01:00
markup_config markup: Reimplement pygmentsCodefencesGuessSyntax 2019-12-02 14:12:23 +01:00
mmark Add render template hooks for links and images 2019-12-18 11:44:40 +01:00
org Add render template hooks for links and images 2019-12-18 11:44:40 +01:00
pandoc Add render template hooks for links and images 2019-12-18 11:44:40 +01:00
rst Add render template hooks for links and images 2019-12-18 11:44:40 +01:00
tableofcontents markup/tableofcontents: Add config option for ordered list 2019-12-12 07:48:40 +01:00
markup.go Add Goldmark as the new default markdown handler 2019-11-23 14:12:24 +01:00
markup_test.go Add Goldmark as the new default markdown handler 2019-11-23 14:12:24 +01:00