From 3b87b856394b23864b8b08bbb644a62173c44414 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 11 Sep 2023 14:43:04 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/9156 --- 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 b5704c888..6bb7e5f52 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -560,7 +560,7 @@ export class Toolbar { hasSameTextStyle(item, nextElement, textObj)) { nextIndex = item.textContent.length; nextElement.innerHTML = item.innerHTML + nextElement.innerHTML; - } else if (item.tagName !== "BR") { + } else if (item.tagName !== "BR" && item.tagName !== "IMG") { if (item.getAttribute("data-type")?.indexOf("backslash") > -1 && item.firstChild?.textContent === "\\") { item.firstChild.remove();