Skip to content

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

:art: Improve HTML kbd clipping https://github.com/siyuan-note/siyuan/issues/12242

Daniel4ac3e9d3977a
diff --git a/kernel/model/file.go b/kernel/model/file.go
index 7f31661970..c728c1ff9b 100644
--- a/kernel/model/file.go
+++ b/kernel/model/file.go
@@ -1164,6 +1164,7 @@ func CreateWithMarkdown(boxID, hPath, md, parentID, id string, withMath bool) (r
if withMath {
luteEngine.SetInlineMath(true)
}
+ luteEngine.SetHTMLTag2TextMark(true)
dom := luteEngine.Md2BlockDOM(md, false)
retID, err = createDocsByHPath(box.ID, hPath, dom, parentID, id)
WaitForWritingFiles()