Skip to content

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

:art: Supports configuration of whether to export inline memos https://github.com/siyuan-note/siyuan/issues/14605

Danielbbd75e6a3602
diff --git a/kernel/model/export.go b/kernel/model/export.go
index b11ad27e40..e8fb80fa62 100644
--- a/kernel/model/export.go
+++ b/kernel/model/export.go
@@ -2229,6 +2229,7 @@ func exportTree(tree *parse.Tree, wysiwyg, keepFold, avHiddenCol bool,
if n.IsTextMarkType("inline-memo") {
text.Type = ast.NodeTextMark
text.TextMarkType = "inline-memo"
+ text.TextMarkTextContent = linkText
text.TextMarkInlineMemoContent = n.TextMarkInlineMemoContent
}
n.InsertBefore(&ast.Node{Type: ast.NodeFootnotesRef, Tokens: []byte("^" + refFoot.refNum), FootnotesRefId: refFoot.refNum, FootnotesRefLabel: []byte("^" + refFoot.refNum)})