Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-10-06 22:46:44 +08:00
commit 7bbccbae3b

View file

@ -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)
}