Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/5969

Vanessa220206287a1f
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index f83297edc3..8b64c60cb1 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 {