mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
🎨 Improve HTML clipping https://github.com/siyuan-note/siyuan/issues/13800
This commit is contained in:
parent
1a991bf20f
commit
61828f5367
2 changed files with 1 additions and 12 deletions
|
@ -123,12 +123,7 @@ func extensionCopy(c *gin.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
luteEngine := util.NewLute()
|
luteEngine := util.NewLute()
|
||||||
luteEngine.SetSup(true)
|
luteEngine.SetHTMLTag2TextMark(true)
|
||||||
luteEngine.SetSub(true)
|
|
||||||
luteEngine.SetMark(true)
|
|
||||||
luteEngine.SetGFMStrikethrough(true)
|
|
||||||
luteEngine.SetInlineAsterisk(true)
|
|
||||||
luteEngine.SetInlineUnderscore(true)
|
|
||||||
var md string
|
var md string
|
||||||
var withMath bool
|
var withMath bool
|
||||||
if nil != form.Value["href"] {
|
if nil != form.Value["href"] {
|
||||||
|
|
|
@ -58,12 +58,6 @@ func html2BlockDOM(c *gin.Context) {
|
||||||
|
|
||||||
dom := arg["dom"].(string)
|
dom := arg["dom"].(string)
|
||||||
luteEngine := util.NewLute()
|
luteEngine := util.NewLute()
|
||||||
luteEngine.SetSup(true)
|
|
||||||
luteEngine.SetSub(true)
|
|
||||||
luteEngine.SetMark(true)
|
|
||||||
luteEngine.SetGFMStrikethrough(true)
|
|
||||||
luteEngine.SetInlineAsterisk(true)
|
|
||||||
luteEngine.SetInlineUnderscore(true)
|
|
||||||
luteEngine.SetHTMLTag2TextMark(true)
|
luteEngine.SetHTMLTag2TextMark(true)
|
||||||
markdown, withMath, err := model.HTML2Markdown(dom, luteEngine)
|
markdown, withMath, err := model.HTML2Markdown(dom, luteEngine)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue