Skip to content

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

:art: 行级元素支持嵌套和交叉 https://github.com/siyuan-note/siyuan/issues/2911

Liang Ding294d6865fa22
diff --git a/kernel/treenode/node.go b/kernel/treenode/node.go
index 00e084b8c2..3df80961d7 100644
--- a/kernel/treenode/node.go
+++ b/kernel/treenode/node.go
@@ -89,6 +89,8 @@ func NodeStaticContent(node *ast.Node) string {
case ast.NodeText, ast.NodeFileAnnotationRefText, ast.NodeFootnotesRef,
ast.NodeCodeSpanContent, ast.NodeInlineMathContent, ast.NodeCodeBlockCode, ast.NodeMathBlockContent, ast.NodeHTMLBlock:
buf.Write(n.Tokens)
+ case ast.NodeTextMark:
+ buf.WriteString(n.TextMarkTextContent)
case ast.NodeBackslash:
buf.WriteByte(lex.ItemBackslash)
case ast.NodeBackslashContent:
@@ -228,6 +230,7 @@ var typeAbbrMap = map[string]string{
"NodeSub": "sub",
"NodeKbd": "kbd",
"NodeUnderline": "underline",
+ "NodeTextMark": "textmark",
}
var abbrTypeMap = map[string]string{}