ref: ca68abf0bc2fa003c2052143218f7b2ab195a46e
parent: a524124beb0e7ca226c207ea48a90cea2cbef76e
author: satotake <doublequotation@gmail.com>
date: Sat Feb 22 21:06:30 EST 2020
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