chore: fix deprecation

This commit is contained in:
Gusted 2024-11-02 13:35:24 +01:00
parent 370dbbc579
commit e2fddcf681
No known key found for this signature in database
GPG key ID: FD821B732837125F
6 changed files with 36 additions and 7 deletions

View file

@ -19,7 +19,7 @@ func (g *ASTTransformer) transformHeading(_ *markup.RenderContext, v *ast.Headin
v.SetAttribute(attr.Name, []byte(fmt.Sprintf("%v", attr.Value)))
}
}
txt := v.Text(reader.Source())
txt := v.Lines().Value(reader.Source())
header := markup.Header{
Text: util.UnsafeBytesToString(txt),
Level: v.Level,