Browse Source

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

Daniel 7 months ago
parent
commit
0d156d7b6d
1 changed files with 1 additions and 0 deletions
  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"