mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
committed by
Bjørn Erik Pedersen
parent
d24da1712f
commit
3fc42da3d0
@@ -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,
|
||||
|
Reference in New Issue
Block a user