From 505cf51efe4e9780c2fdea4c52057883e0a3296f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 29 Oct 2024 13:16:45 +0800 Subject: [PATCH] :art: https://ld246.com/article/1730020516427 --- app/src/protyle/wysiwyg/input.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts index 30f9a6e91..0d724ddfa 100644 --- a/app/src/protyle/wysiwyg/input.ts +++ b/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 === "¥¥" || trimStartText === "¥¥") { editElement.innerHTML = "$$"; + } else if (trimStartText.indexOf("\n¥¥") > -1 || trimStartText.indexOf("\n¥¥") > -1) { + // https://ld246.com/article/1730020516427 + editElement.innerHTML = trimStartText.replace("\n¥¥", "\n$$$$").replace("\n¥¥", "\n$$$$"); } const refElement = hasClosestByAttribute(range.startContainer, "data-type", "block-ref"); if (refElement && refElement.getAttribute("data-subtype") === "d") {