소스 검색

:art: https://ld246.com/article/1730020516427

Vanessa 9 달 전
부모
커밋
505cf51efe
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      app/src/protyle/wysiwyg/input.ts

+ 3 - 0
app/src/protyle/wysiwyg/input.ts

@@ -111,6 +111,9 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
     // https://github.com/siyuan-note/siyuan/issues/9015
     if (trimStartText === "¥¥<wbr>" || trimStartText === "¥¥<wbr>") {
         editElement.innerHTML = "$$<wbr>";
+    } else if (trimStartText.indexOf("\n¥¥<wbr>") > -1 || trimStartText.indexOf("\n¥¥<wbr>") > -1) {
+        // https://ld246.com/article/1730020516427
+        editElement.innerHTML = trimStartText.replace("\n¥¥<wbr>", "\n$$$$<wbr>").replace("\n¥¥<wbr>", "\n$$$$<wbr>");
     }
     const refElement = hasClosestByAttribute(range.startContainer, "data-type", "block-ref");
     if (refElement && refElement.getAttribute("data-subtype") === "d") {