🎨 Improve Paste and Paste as plain text Fix https://github.com/siyuan-note/siyuan/issues/8289

This commit is contained in:
Liang Ding 2023-05-17 21:48:01 +08:00
parent dd6bfbe4ba
commit aef5130436
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
7 changed files with 14 additions and 9 deletions

View file

@ -55,7 +55,6 @@ import (
func HTML2Markdown(htmlStr string) (markdown string, err error) {
assetDirPath := filepath.Join(util.DataDir, "assets")
luteEngine := util.NewLute()
luteEngine.SetProtyleWYSIWYG(false)
tree := luteEngine.HTML2Tree(htmlStr)
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
if !entering || ast.NodeLinkDest != n.Type {