Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/16944

Vanessaac4f358b4b9c
diff --git a/app/src/protyle/util/insertHTML.ts b/app/src/protyle/util/insertHTML.ts
index 66ca7e6f31..d7e19a1a2f 100644
--- a/app/src/protyle/util/insertHTML.ts
+++ b/app/src/protyle/util/insertHTML.ts
@@ -292,7 +292,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
return;
}
- if (blockElement.classList.contains("av")) {
+ if (blockElement.classList.contains("av") && !isBlock) {
range.deleteContents();
processAV(range, html, protyle, blockElement as HTMLElement);
return;