From cd7734ba912ea498bfb2af2301ad5660c649a38e Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Sat, 23 Aug 2025 11:23:34 +0800 Subject: [PATCH] :art: Improve protyle slash (#15648) fix https://github.com/siyuan-note/siyuan/issues/15647 --- app/src/protyle/hint/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts index 497fadee0..71dd80825 100644 --- a/app/src/protyle/hint/index.ts +++ b/app/src/protyle/hint/index.ts @@ -727,7 +727,7 @@ ${genHintItemHTML(item)} focusByRange(range); this.genEmojiHTML(protyle); return; - } else if (value.indexOf("style") > -1) { + } else if (value.startsWith("style")) { range.deleteContents(); this.fixImageCursor(range); nodeElement.setAttribute("style", value.split(Constants.ZWSP)[1] || "");