Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-10-06 11:16:17 +08:00
parent c7a74fc7bc
commit 4550648c07
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 4 additions and 4 deletions

View file

@ -2312,7 +2312,7 @@ func exportTree(tree *parse.Tree, wysiwyg, keepFold, avHiddenCol bool,
case 4: // 脚注+锚点哈希
if currentTreeNodeIDs[defID] {
// 当前文档内不转换脚注,直接使用锚点哈希 https://github.com/siyuan-note/siyuan/issues/13283
n.TextMarkType = strings.ReplaceAll(n.TextMarkType, "block-ref", "a")
n.TextMarkType = "a " + n.TextMarkType
n.TextMarkTextContent = linkText
n.TextMarkAHref = "#" + defID
return ast.WalkContinue