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: https://github.com/siyuan-note/siyuan/issues/12346
Danielb062d3f45f7d
diff --git a/app/src/protyle/render/highlightRender.ts b/app/src/protyle/render/highlightRender.tsindex b99211850a..f13289815f 100644--- a/app/src/protyle/render/highlightRender.ts+++ b/app/src/protyle/render/highlightRender.ts@@ -135,7 +135,8 @@ export const lineNumberRender = (block: HTMLElement) => {lineList.map((line) => {let lineHeight = "";if (isWrap) {- lineNumberTemp.textContent = line || "<br>";+ // windows 下空格高度为 0 https://github.com/siyuan-note/siyuan/issues/12346+ lineNumberTemp.textContent = line.trim() || "<br>";// 不能使用 lineNumberTemp.getBoundingClientRect().height.toFixed(1) 否则// windows 需等待字体下载完成再计算,否则导致不换行,高度计算错误// https://github.com/siyuan-note/siyuan/issues/9029