Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/9471

Vanessa48f2e80759ef
diff --git a/app/src/protyle/render/highlightRender.ts b/app/src/protyle/render/highlightRender.ts
index f94b3009ba..b9a4e581a3 100644
--- a/app/src/protyle/render/highlightRender.ts
+++ b/app/src/protyle/render/highlightRender.ts
@@ -128,9 +128,6 @@ export const lineNumberRender = (block: HTMLElement) => {
if (block.parentElement.getAttribute("lineNumber") === "false") {
return;
}
- if (block.nextElementSibling && block.nextElementSibling.clientHeight === block.clientHeight) {
- return;
- }
block.classList.add("protyle-linenumber");
// clientHeight 总是取的整数
block.parentElement.style.lineHeight = `${((parseInt(block.parentElement.style.fontSize) || window.siyuan.config.editor.fontSize) * 1.625 * 0.85).toFixed(0)}px`;