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

This commit is contained in:
Daniel 2025-04-23 10:51:53 +08:00
parent 5ec0247a2d
commit bbd75e6a36
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -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)})