From 220206287a1fc8f7f467caea2c101fb6f8cb0a3f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 26 Sep 2022 22:26:17 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5969 --- app/src/protyle/toolbar/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index f83297edc..8b64c60cb 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -485,6 +485,9 @@ export class Toolbar { nextElement.innerHTML = item.innerHTML + nextElement.innerHTML; } else if (item.tagName !== "BR") { item.setAttribute("data-type", types.join(" ")); + item.querySelectorAll("span").forEach(backslashItem => { + backslashItem.remove() + }); setFontStyle(item, textObj); newNodes.push(item); } else {