This commit is contained in:
Daniel 2024-12-09 17:31:42 +08:00
parent 5a44e10bdd
commit 8d0aac690e
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 6 additions and 2 deletions

View file

@ -116,3 +116,7 @@ func NewParagraph(id string) (ret *ast.Node) {
ret.SetIALAttr("updated", newID[:14])
return
}
func NewSpanAnchor(id string) (ret *ast.Node) {
return &ast.Node{Type: ast.NodeInlineHTML, Tokens: []byte("<span id=\"" + id + "\" style=\"display: none;\"></span>")}
}