diff options
Diffstat (limited to 'markup/goldmark/toc.go')
-rw-r--r-- | markup/goldmark/toc.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/markup/goldmark/toc.go b/markup/goldmark/toc.go index ac5040e85..bc209adf2 100644 --- a/markup/goldmark/toc.go +++ b/markup/goldmark/toc.go @@ -80,6 +80,7 @@ func (t *tocTransformer) Transform(n *ast.Document, reader text.Reader, pc parse id, found := heading.AttributeString("id") if found { tocHeading.ID = string(id.([]byte)) + tocHeading.Level = level } case ast.KindCodeSpan, |