Skip to content

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

:art: Improve importing for markdown syntax `#Tag` Fix https://github.com/siyuan-note/siyuan/issues/8882

Daniel1e8b5df293bf
diff --git a/kernel/model/import.go b/kernel/model/import.go
index 7e2d363d3e..2b1cb866ad 100644
--- a/kernel/model/import.go
+++ b/kernel/model/import.go
@@ -1063,6 +1063,7 @@ func buildBlockRefInText() {
}
t := parse.Inline("", n.Tokens, lute.ParseOptions) // 使用行级解析
+ parse.NestedInlines2FlattedSpans(t)
var children []*ast.Node
for c := t.Root.FirstChild.FirstChild; nil != c; c = c.Next {
children = append(children, c)