From d562fdb68d2adfb5f2e5dac6cdd73547e2e78004 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 11 Dec 2024 00:11:12 +0800 Subject: [PATCH] :bug: Paste code block missing line break https://github.com/siyuan-note/siyuan/issues/13416 --- kernel/model/import.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/import.go b/kernel/model/import.go index 4d69a3a1a..1745c6d0d 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 {