]> git.maquefel.me Git - brevno-suite/hugo/commit
markup/goldmark: TOC: render strikethrough, emojis
authorJonas Zeiger <jonas.zeiger@talpidae.net>
Tue, 5 Dec 2023 23:29:03 +0000 (00:29 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 7 Mar 2024 13:08:29 +0000 (14:08 +0100)
commit134e7d1d3d1ca901a274c56ef720c9c48be56b77
tree7f5a20b3015d5a6b3eb751086c2d82c3c1d07c53
parent1f48b717c7f1bb9ecdbf8a7f50cbcdc5cf1dcc0a
markup/goldmark: TOC: render strikethrough, emojis

Configure the TOC (TableOfContents, toc.go) goldmark renderer to always
enable the Strikethrough and Emoji extensions. This allows handling
ast.KindStrikethrough and ast.KindEmoji AST nodes when rendering the TOC.

Fixes #7169
Fixes #11783
Fixes #12022
markup/goldmark/convert.go
markup/goldmark/toc.go
markup/goldmark/toc_integration_test.go