From 6eacd57ae7adbece949a46b2dc20f2f31d680429 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 26 Jan 2026 12:50:36 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/16896 Signed-off-by: Daniel <845765@qq.com> --- app/src/protyle/toolbar/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 67a592d72..f23ece28f 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -777,7 +777,7 @@ export class Toolbar { currentNode.textContent = currentNode.textContent.substring(1); } if (previousElement.textContent.endsWith(Constants.ZWSP)) { - previousElement.textContent = previousElement.textContent.substring(0, previousElement.textContent.length - 2); + previousElement.textContent = previousElement.textContent.substring(0, previousElement.textContent.length - 1); } } else { const previousType = previousElement ? (previousElement.getAttribute("data-type") || "").split(" ") : [];