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

@@ -77,6 +77,7 @@ func (h Headings) FilterBy(fn func(*Heading) bool) Headings {
// Heading holds the data about a heading and its children.
type Heading struct {
ID string
Level int
Title string
Headings Headings