mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🎨 Markdown syntax switch no longer affects clip/paste HTML parsing https://github.com/siyuan-note/siyuan/issues/11604
This commit is contained in:
parent
505cf51efe
commit
7c6ff6b55f
6 changed files with 14 additions and 12 deletions
|
|
@ -123,6 +123,7 @@ func extensionCopy(c *gin.Context) {
|
|||
}
|
||||
|
||||
luteEngine := util.NewLute()
|
||||
luteEngine.SetHTMLTag2TextMark(true)
|
||||
var md string
|
||||
var withMath bool
|
||||
if nil != form.Value["href"] {
|
||||
|
|
@ -175,7 +176,7 @@ func extensionCopy(c *gin.Context) {
|
|||
}
|
||||
|
||||
if "" == md {
|
||||
md, withMath, _ = model.HTML2Markdown(dom)
|
||||
md, withMath, _ = model.HTML2Markdown(dom, luteEngine)
|
||||
}
|
||||
|
||||
md = strings.TrimSpace(md)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue