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/12340

Vanessae33084ce5345
diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts
index cfec3a789a..e28f396596 100644
--- a/app/src/protyle/wysiwyg/input.ts
+++ b/app/src/protyle/wysiwyg/input.ts
@@ -114,7 +114,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
}
let html = blockElement.outerHTML;
let focusHR = false;
- if (editElement.textContent === "---" && type !== "NodeCodeBlock") {
+ if (["---", "___", "***"].includes(editElement.textContent) && type !== "NodeCodeBlock") {
html = `<div data-node-id="${id}" data-type="NodeThematicBreak" class="hr"><div></div></div>`;
const nextBlockElement = getNextBlock(editElement);
if (nextBlockElement) {