mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
🎨 Improve exporting block ref https://github.com/siyuan-note/siyuan/issues/13331
This commit is contained in:
parent
60b95448b3
commit
67087238d8
3 changed files with 4 additions and 4 deletions
|
|
@ -2149,7 +2149,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 = "a"
|
||||
n.TextMarkType = strings.ReplaceAll(n.TextMarkType, "block-ref", "a")
|
||||
n.TextMarkTextContent = linkText
|
||||
n.TextMarkAHref = "#" + defID
|
||||
return ast.WalkContinue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue