This commit is contained in:
Daniel 2025-01-12 21:30:03 +08:00
parent 1a991bf20f
commit 61828f5367
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 1 additions and 12 deletions

View file

@ -123,12 +123,7 @@ func extensionCopy(c *gin.Context) {
}
luteEngine := util.NewLute()
luteEngine.SetSup(true)
luteEngine.SetSub(true)
luteEngine.SetMark(true)
luteEngine.SetGFMStrikethrough(true)
luteEngine.SetInlineAsterisk(true)
luteEngine.SetInlineUnderscore(true)
luteEngine.SetHTMLTag2TextMark(true)
var md string
var withMath bool
if nil != form.Value["href"] {

View file

@ -58,12 +58,6 @@ func html2BlockDOM(c *gin.Context) {
dom := arg["dom"].(string)
luteEngine := util.NewLute()
luteEngine.SetSup(true)
luteEngine.SetSub(true)
luteEngine.SetMark(true)
luteEngine.SetGFMStrikethrough(true)
luteEngine.SetInlineAsterisk(true)
luteEngine.SetInlineUnderscore(true)
luteEngine.SetHTMLTag2TextMark(true)
markdown, withMath, err := model.HTML2Markdown(dom, luteEngine)
if err != nil {