summaryrefslogtreecommitdiffstats
path: root/markup/goldmark/toc.go
diff options
context:
space:
mode:
Diffstat (limited to 'markup/goldmark/toc.go')
-rw-r--r--markup/goldmark/toc.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/markup/goldmark/toc.go b/markup/goldmark/toc.go
index bc209adf2..b0f7e703f 100644
--- a/markup/goldmark/toc.go
+++ b/markup/goldmark/toc.go
@@ -16,6 +16,10 @@ package goldmark
import (
"bytes"
+ strikethroughAst "github.com/yuin/goldmark/extension/ast"
+
+ emojiAst "github.com/yuin/goldmark-emoji/ast"
+
"github.com/gohugoio/hugo/markup/tableofcontents"
"github.com/yuin/goldmark"
@@ -86,7 +90,9 @@ func (t *tocTransformer) Transform(n *ast.Document, reader text.Reader, pc parse
ast.KindCodeSpan,
ast.KindLink,
ast.KindImage,
- ast.KindEmphasis:
+ ast.KindEmphasis,
+ strikethroughAst.KindStrikethrough,
+ emojiAst.KindEmoji:
err := t.r.Render(&headingText, reader.Source(), n)
if err != nil {
return s, err