mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 14:12:34 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
091ec8991d
commit
3d5c24519b
2 changed files with 8 additions and 14 deletions
|
|
@ -224,13 +224,6 @@ func extensionCopy(c *gin.Context) {
|
|||
})
|
||||
|
||||
tree, withMath = model.HTML2Tree(dom, luteEngine)
|
||||
if nil == tree {
|
||||
md, withMath, _ = model.HTML2Markdown(dom, luteEngine)
|
||||
if withMath {
|
||||
luteEngine.SetInlineMath(true)
|
||||
}
|
||||
tree = parse.Parse("", []byte(md), luteEngine.ParseOptions)
|
||||
}
|
||||
} else {
|
||||
tree = parse.Parse("", []byte(md), luteEngine.ParseOptions)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue