Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Daniel0d156d7b6d94
diff --git a/kernel/api/lute.go b/kernel/api/lute.go
index ff88a053a3..0582b1c47d 100644
--- a/kernel/api/lute.go
+++ b/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"