Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-11-23 20:34:36 +08:00
commit adb942b4d5

View file

@ -64,6 +64,7 @@ func html2BlockDOM(c *gin.Context) {
luteEngine.SetGFMStrikethrough(true)
luteEngine.SetInlineAsterisk(true)
luteEngine.SetInlineUnderscore(true)
luteEngine.SetHTMLTag2TextMark(true)
markdown, withMath, err := model.HTML2Markdown(dom, luteEngine)
if err != nil {
ret.Data = "Failed to convert"