This commit is contained in:
Daniel 2024-11-26 10:34:22 +08:00
parent a7a4d85c77
commit da1b97f70c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1984,6 +1984,7 @@ func exportMarkdownContent0(tree *parse.Tree, cloudAssetsBase string, assetsDest
href += "#" + defID
}
}
href = util.FilterFilePath(href)
blockRefLink := &ast.Node{Type: ast.NodeTextMark, TextMarkType: "a", TextMarkTextContent: linkText, TextMarkAHref: href}
blockRefLink.KramdownIAL = n.KramdownIAL
n.InsertBefore(blockRefLink)