Explorar o código

:art: Improve markdown parsing https://github.com/siyuan-note/siyuan/issues/13240

Daniel hai 7 meses
pai
achega
0d156d7b6d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      kernel/api/lute.go

+ 1 - 0
kernel/api/lute.go

@@ -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"