mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -114,6 +114,19 @@ func GetBlockRefText(id string) string {
|
||||
if nil == node {
|
||||
return ErrBlockNotFound.Error()
|
||||
}
|
||||
|
||||
ast.Walk(node, func(n *ast.Node, entering bool) ast.WalkStatus {
|
||||
if !entering {
|
||||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
if n.IsTextMarkType("inline-memo") {
|
||||
// Block ref anchor text no longer contains contents of inline-level memos https://github.com/siyuan-note/siyuan/issues/9363
|
||||
n.TextMarkInlineMemoContent = ""
|
||||
return ast.WalkContinue
|
||||
}
|
||||
return ast.WalkContinue
|
||||
})
|
||||
return getNodeRefText(node)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user