From 530f011686b0101fbe9df7a59fc1b74c2881438d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 23 Aug 2023 13:48:11 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9015 --- app/src/protyle/wysiwyg/input.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/protyle/wysiwyg/input.ts b/app/src/protyle/wysiwyg/input.ts index 32038eae0..da06aa8ed 100644 --- a/app/src/protyle/wysiwyg/input.ts +++ b/app/src/protyle/wysiwyg/input.ts @@ -84,6 +84,10 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range: wbrElement.remove(); return; } + // https://github.com/siyuan-note/siyuan/issues/9015 + if (trimStartText === "¥¥") { + editElement.innerHTML = "$$"; + } const refElement = hasClosestByAttribute(range.startContainer, "data-type", "block-ref"); if (refElement && refElement.getAttribute("data-subtype") === "d") { const response = await fetchSyncPost("/api/block/getRefText", {id: refElement.getAttribute("data-id")});