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: Paste code block missing line break https://github.com/siyuan-note/siyuan/issues/13416
Danield562fdb68d2a
diff --git a/kernel/model/import.go b/kernel/model/import.goindex 4d69a3a1a5..1745c6d0d1 100644--- a/kernel/model/import.go+++ b/kernel/model/import.go@@ -67,7 +67,7 @@ func HTML2Markdown(htmlStr string, luteEngine *lute.Lute) (markdown string, with}func HTML2Tree(htmlStr string, luteEngine *lute.Lute) (tree *parse.Tree, withMath bool) {- htmlStr = util.RemoveInvalid(htmlStr)+ htmlStr = gulu.Str.RemovePUA(htmlStr)assetDirPath := filepath.Join(util.DataDir, "assets")tree = luteEngine.HTML2Tree(htmlStr)ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {