Skip to content

Commit

Permalink
🐛 Paste code block missing line break #13416
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 10, 2024
1 parent 7e21eb1 commit d562fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/model/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d562fdb

Please sign in to comment.