An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:adhesive_bandage: https://github.com/siyuan-note/siyuan/issues/5213
Vanessaf375b244d72d
diff --git a/app/src/asset/anno.ts b/app/src/asset/anno.tsindex a2e3d3188d..8c0fc4219f 100644--- a/app/src/asset/anno.ts+++ b/app/src/asset/anno.ts@@ -388,7 +388,9 @@ const getHightlightCoordsByRange = (pdf: any, color: string) => {Array.from(rangeContents.children).forEach(item => {if (item.tagName === "BR") {const previousText = item.previousElementSibling.textContent;- if (previousText.endsWith("-")) {+ const nextText = item.nextElementSibling.textContent;+ if (previousText.endsWith("-") && /^[A-Za-z]$/.test(previousText.substring(previousText.length - 2, previousText.length - 1)) &&+ /^[A-Za-z]$/.test(nextText.substring(0, 1))) {item.previousElementSibling.textContent = previousText.substring(0, previousText.length - 1);} else {item.insertAdjacentText("afterend", " ");