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/16852

Vanessaf2532998e42d
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 909bc35c9f..768b113483 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -1130,7 +1130,7 @@ export const turnsIntoTransaction = (options: {
const id = item.getAttribute("data-node-id");
const tempElement = document.createElement("template");
- if (!options.isContinue) {
+ if (!options.isContinue || options.level) {
// @ts-ignore
let newHTML = options.protyle.lute[options.type](item.outerHTML, options.level);
tempElement.innerHTML = newHTML;