An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
Update index.ts (#15138)
Tron8b1a2d49d7d6
diff --git a/app/src/protyle/preview/index.ts b/app/src/protyle/preview/index.tsindex 2f1d5f2e91..c3c1196494 100644--- a/app/src/protyle/preview/index.ts+++ b/app/src/protyle/preview/index.ts@@ -234,6 +234,22 @@ export class Preview {}});});+ // 处理任务列表(微信公众号不能显示input[type="checkbox"])+ copyElement.querySelectorAll('li.protyle-task').forEach(taskItem => {+ // Set checkbox input opacity to 0+ const checkbox = taskItem.querySelector('input[type="checkbox"]');+ if (checkbox) {+ checkbox.style.opacity = '0';+ }++ const isDone = taskItem.classList.contains('protyle-task--done');+ if (isDone) {+ taskItem.style.setProperty('list-style-type', "'✅'", 'important');+ }+ else {+ taskItem.style.setProperty('list-style-type', "'▢'", 'important');+ }+ });if(typeof window.MathJax === "undefined") {window.MathJax = {svg: {