chore: fix deprecation
This commit is contained in:
parent
370dbbc579
commit
e2fddcf681
6 changed files with 36 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue