🎨 改进 Edge 浏览器 Web 选择 复制 Fix https://github.com/siyuan-note/siyuan/issues/7021

This commit is contained in:
Liang Ding 2023-01-09 22:00:40 +08:00
parent 751c1df6b6
commit 5cf817c3a2
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 41 additions and 11 deletions

View file

@ -55,13 +55,13 @@ func html2BlockDOM(c *gin.Context) {
}
dom := arg["dom"].(string)
luteEngine := model.NewLute()
markdown, err := luteEngine.HTML2Markdown(dom)
markdown, err := model.HTML2Markdown(dom)
if nil != err {
ret.Data = "Failed to convert"
return
}
luteEngine := model.NewLute()
var unlinks []*ast.Node
tree := parse.Parse("", []byte(markdown), luteEngine.ParseOptions)
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {