Преглед изворни кода

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

Vanessa пре 10 месеци
родитељ
комит
e33084ce53
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/src/protyle/wysiwyg/input.ts

+ 1 - 1
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) {