mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🐛 Paste code block missing line break https://github.com/siyuan-note/siyuan/issues/13416
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user