An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/11954
Vanessa72f2e3d4a08b
diff --git a/app/src/protyle/util/table.ts b/app/src/protyle/util/table.tsindex 376b076e09..e68342a751 100644--- a/app/src/protyle/util/table.ts+++ b/app/src/protyle/util/table.ts@@ -154,7 +154,7 @@ export const insertRowAbove = (protyle: IProtyle, range: Range, cellElement: HTMif (cellElement.parentElement.parentElement.tagName === "THEAD" && !cellElement.parentElement.previousElementSibling) {cellElement.parentElement.parentElement.insertAdjacentHTML("beforebegin", `<thead><tr>${rowHTML}</tr></thead>`);newRowElememt = nodeElement.querySelector("thead tr");- cellElement.parentElement.parentElement.nextElementSibling.insertAdjacentHTML("afterbegin", cellElement.parentElement.parentElement.innerHTML);+ cellElement.parentElement.parentElement.nextElementSibling.insertAdjacentHTML("afterbegin", cellElement.parentElement.parentElement.innerHTML.replace(/<th/g, "<td").replace(/<\/th>/g, "</td>"));cellElement.parentElement.parentElement.remove();} else {cellElement.parentElement.insertAdjacentHTML("beforebegin", `<tr>${rowHTML}</tr>`);