mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-10 04:59:03 +08:00
🎨 Block ref anchor text no longer contains contents of inline-level memos https://github.com/siyuan-note/siyuan/issues/9363
This commit is contained in:
parent
872a409ec4
commit
75dd676b56
@ -114,6 +114,19 @@ func GetBlockRefText(id string) string {
|
|||||||
if nil == node {
|
if nil == node {
|
||||||
return ErrBlockNotFound.Error()
|
return ErrBlockNotFound.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Block ref anchor text no longer contains contents of inline-level memos https://github.com/siyuan-note/siyuan/issues/9363
|
||||||
|
ast.Walk(node, func(n *ast.Node, entering bool) ast.WalkStatus {
|
||||||
|
if !entering {
|
||||||
|
return ast.WalkContinue
|
||||||
|
}
|
||||||
|
|
||||||
|
if n.IsTextMarkType("inline-memo") {
|
||||||
|
n.TextMarkInlineMemoContent = ""
|
||||||
|
return ast.WalkContinue
|
||||||
|
}
|
||||||
|
return ast.WalkContinue
|
||||||
|
})
|
||||||
return getNodeRefText(node)
|
return getNodeRefText(node)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user