An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 行级元素支持嵌套和交叉 https://github.com/siyuan-note/siyuan/issues/2911
Liang Ding4aac04d34749
diff --git a/kernel/go.mod b/kernel/go.modindex 1120c423b5..e785556a66 100644--- a/kernel/go.mod+++ b/kernel/go.mod@@ -128,7 +128,7 @@ replace github.com/mattn/go-sqlite3 => github.com/88250/go-sqlite3 v1.14.13-0.20//replace github.com/siyuan-note/dejavu => D:\88250\dejavu//replace github.com/siyuan-note/httpclient => D:\88250\httpclient//replace github.com/siyuan-note/filelock => D:\88250\filelock-//replace github.com/88250/lute => D:\gogogo\src\github.com\88250\lute+replace github.com/88250/lute => D:\gogogo\src\github.com\88250\lute//replace github.com/88250/enumfonts => D:\88250\enumfonts//replace github.com/88250/pdfcpu => D:\88250\pdfcpu//replace github.com/88250/gulu => D:\88250\guludiff --git a/kernel/sql/block_query.go b/kernel/sql/block_query.goindex 690c0dd9e5..4b694137fc 100644--- a/kernel/sql/block_query.go+++ b/kernel/sql/block_query.go@@ -655,7 +655,7 @@ func GetContainerText(container *ast.Node) string {ast.NodeCodeSpanContent, ast.NodeInlineMathContent, ast.NodeCodeBlockCode, ast.NodeMathBlockContent:buf.Write(n.Tokens)case ast.NodeTextMark:- buf.WriteString(n.TextMarkTextContent)+ buf.WriteString(n.Content())case ast.NodeBlockRef:if anchor := n.ChildByType(ast.NodeBlockRefText); nil != anchor {buf.WriteString(anchor.Text())diff --git a/kernel/sql/database.go b/kernel/sql/database.goindex 8f05a5ddff..13419b0415 100644--- a/kernel/sql/database.go+++ b/kernel/sql/database.go@@ -400,7 +400,7 @@ func resolveRefContent0(node *ast.Node, anchors *map[string]string, depth *int,ast.NodeCodeSpanContent, ast.NodeInlineMathContent, ast.NodeCodeBlockCode, ast.NodeMathBlockContent:buf.Write(n.Tokens)case ast.NodeTextMark:- buf.WriteString(n.TextMarkTextContent)+ buf.WriteString(n.Content())case ast.NodeBlockRef:if anchor := n.ChildByType(ast.NodeBlockRefText); nil != anchor {buf.WriteString(anchor.Text())@@ -550,7 +550,7 @@ func buildSpanFromNode(n *ast.Node, tree *parse.Tree, rootID, boxID, p string) (case ast.NodeCodeSpan:text = n.ChildByType(ast.NodeCodeSpanContent).TokensStr()case ast.NodeTextMark:- text = n.TextMarkTextContent+ text = n.Content()typ = typ + " " + n.TextMarkType}diff --git a/kernel/treenode/node.go b/kernel/treenode/node.goindex 3df80961d7..a4cb25b745 100644--- a/kernel/treenode/node.go+++ b/kernel/treenode/node.go@@ -90,7 +90,7 @@ func NodeStaticContent(node *ast.Node) string {ast.NodeCodeSpanContent, ast.NodeInlineMathContent, ast.NodeCodeBlockCode, ast.NodeMathBlockContent, ast.NodeHTMLBlock:buf.Write(n.Tokens)case ast.NodeTextMark:- buf.WriteString(n.TextMarkTextContent)+ buf.WriteString(n.Content())case ast.NodeBackslash:buf.WriteByte(lex.ItemBackslash)case ast.NodeBackslashContent: