This commit is contained in:
Daniel 2024-11-23 20:20:07 +08:00
parent 6e5dc8b724
commit 0d156d7b6d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

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"