🐛 Paste code block missing line break https://github.com/siyuan-note/siyuan/issues/13416
This commit is contained in:
parent
7e21eb12e6
commit
d562fdb68d
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue