markup: Add Level to Heading struct

Closes #10776
This commit is contained in:
Joe Mooring
2023-12-02 12:55:54 -08:00
committed by Bjørn Erik Pedersen
parent d24da1712f
commit 3fc42da3d0
3 changed files with 47 additions and 0 deletions

View File

@@ -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,