markup: Rename Header(s) to Heading(s) in ToC struct

Because that is what it is.
This commit is contained in:
Bjørn Erik Pedersen
2021-06-19 18:19:46 +02:00
parent b70a12ec45
commit a7e3da242f
5 changed files with 74 additions and 74 deletions

View File

@@ -276,7 +276,7 @@ func parseTOC(doc *html.Node) tableofcontents.Root {
continue
}
href := attr(c, "href")[1:]
toc.AddAt(tableofcontents.Header{
toc.AddAt(tableofcontents.Heading{
Text: nodeContent(c),
ID: href,
}, row, level)