An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 块引锚文本导出时 `&` 变为实体 `&` Fix https://github.com/siyuan-note/siyuan/issues/7659
Liang Ding0cde449b4545
diff --git a/kernel/model/export.go b/kernel/model/export.goindex c5b2eff4f7..0eda744b60 100644--- a/kernel/model/export.go+++ b/kernel/model/export.go@@ -1655,6 +1655,7 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros, keepFold bool,if "" == linkText {linkText = sql.GetRefText(defID)}+ linkText = html.UnescapeHTMLStr(linkText) // 块引锚文本导出时 `&` 变为实体 `&` https://github.com/siyuan-note/siyuan/issues/7659if Conf.Editor.BlockRefDynamicAnchorTextMaxLen < utf8.RuneCountInString(linkText) {linkText = gulu.Str.SubStr(linkText, Conf.Editor.BlockRefDynamicAnchorTextMaxLen) + "..."}