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

Vanessa049be21c080c
diff --git a/app/src/protyle/render/setLute.ts b/app/src/protyle/render/setLute.ts
index b43fa48062..65512499c7 100644
--- a/app/src/protyle/render/setLute.ts
+++ b/app/src/protyle/render/setLute.ts
@@ -47,6 +47,10 @@ export const setLute = (options: ILuteOptions) => {
});
lute.PutEmojis(emojis);
}
- lute.SetUnorderedListMarker("-");;
+ lute.SetUnorderedListMarker("-");
+ lute.SetDataTask(true);
+ lute.SetExportNormalizeTaskListMarker(true);
+ lute.SetArbitraryTaskListItemMarker(true);
+
return lute;
};
diff --git a/app/src/types/protyle.d.ts b/app/src/types/protyle.d.ts
index c1f33f6d26..64478779d9 100644
--- a/app/src/types/protyle.d.ts
+++ b/app/src/types/protyle.d.ts
@@ -297,6 +297,12 @@ declare class Lute {
public HTML2BlockDOM(html: string): string;
public SetUnorderedListMarker(marker: string): void;
+
+ public SetDataTask(marker: boolean): void;
+
+ public SetExportNormalizeTaskListMarker(marker: boolean): void;
+
+ public SetArbitraryTaskListItemMarker(marker: boolean): void;
}
declare const webkitAudioContext: {