An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 导入 Markdown 时转换 Base64 图片失效 Fix https://github.com/siyuan-note/siyuan/issues/6909
Liang Ding2b451eddad75
diff --git a/kernel/model/box.go b/kernel/model/box.goindex abe7251a07..5c96c97aa6 100644--- a/kernel/model/box.go+++ b/kernel/model/box.go@@ -452,7 +452,6 @@ func moveTree(tree *parse.Tree) {func parseStdMd(markdown []byte) (ret *parse.Tree) {luteEngine := lute.New()- luteEngine.SetProtyleWYSIWYG(true)luteEngine.SetFootnotes(false)luteEngine.SetToC(false)luteEngine.SetIndentCodeBlock(false)@@ -510,6 +509,14 @@ func genTreeID(tree *parse.Tree) {if "" == n.ID && 0 < len(n.KramdownIAL) && ast.NodeDocument != n.Type {n.ID = n.IALAttr("id")}++ if ast.NodeParagraph == n.Type && nil != n.FirstChild && ast.NodeTaskListItemMarker == n.FirstChild.Type {+ // 踢掉任务列表的第一个子节点左侧空格+ n.FirstChild.Next.Tokens = bytes.TrimLeft(n.FirstChild.Next.Tokens, " ")+ // 调整 li.p.tlim 为 li.tlim.p+ n.InsertBefore(n.FirstChild)+ }+return ast.WalkContinue})tree.Root.KramdownIAL = parse.Tokens2IAL(tree.Root.LastChild.Tokens)