markup/asciidocext: Add Level to Heading struct

Closes #12291
This commit is contained in:
Joe Mooring
2024-03-21 10:30:27 -07:00
committed by Bjørn Erik Pedersen
parent a2f67152b3
commit c837f36ab4
2 changed files with 10 additions and 2 deletions

View File

@@ -243,6 +243,7 @@ func parseTOC(doc *html.Node) *tableofcontents.Fragments {
toc.AddAt(&tableofcontents.Heading{
Title: nodeContent(c),
ID: href,
Level: level + 1,
}, row, level)
}
f(n.FirstChild, row, level)