diff options
author | Joe Mooring <joe.mooring@veriphor.com> | 2023-12-02 12:55:54 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-12-04 11:41:01 +0100 |
commit | 3fc42da3d064873a29144d341ae9bcca5a2d03ca (patch) | |
tree | 2077051a9d57571731127f7e9a63ee001a7da4fe /markup/goldmark | |
parent | d24da1712f2e5b4caeb3349d4e5d3c6cec09c6fe (diff) |
markup: Add Level to Heading struct
Closes #10776
Diffstat (limited to 'markup/goldmark')
-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, |