Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Ignore `*` back mentions and virtual references Fix https://github.com/siyuan-note/siyuan/issues/10873

Daniel44d41a085653
diff --git a/kernel/model/virutalref.go b/kernel/model/virutalref.go
index 72a0f2b2b0..668bb204eb 100644
--- a/kernel/model/virutalref.go
+++ b/kernel/model/virutalref.go
@@ -275,7 +275,7 @@ func prepareMarkKeywords(keywords []string) (ret []string) {
ret = gulu.Str.RemoveDuplicatedElem(keywords)
var tmp []string
for _, k := range ret {
- if "" != k {
+ if "" != k && "*" != k { // 提及和虚引排除 * Ignore `*` back mentions and virtual references https://github.com/siyuan-note/siyuan/issues/10873
tmp = append(tmp, k)
}
}