mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-02 02:40:15 +01:00
🎨 Improve Paste and Paste as plain text Fix https://github.com/siyuan-note/siyuan/issues/8289
This commit is contained in:
parent
dd6bfbe4ba
commit
aef5130436
7 changed files with 14 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue