Skip to content

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

:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797

Daniel03fc1f9d2283
diff --git a/app/src/protyle/render/setLute.ts b/app/src/protyle/render/setLute.ts
index 8973dc30fd..edd7d8798f 100644
--- a/app/src/protyle/render/setLute.ts
+++ b/app/src/protyle/render/setLute.ts
@@ -9,7 +9,7 @@ let luteInstance: Lute | undefined;
* 仅在首次创建时应用 options,后续调用直接返回已缓存的实例 ——
* Lute 配置本就源于全局 config,跨编辑器一致,无需按编辑器区分。
*/
-export const getLute = (options?: ILuteOptions): Lute => {
+export const getLute = (options: ILuteOptions): Lute => {
if (!luteInstance) {
luteInstance = setLute(options);
}
diff --git a/app/src/types/protyle.d.ts b/app/src/types/protyle.d.ts
index 2a85096aac..c31b599b3a 100644
--- a/app/src/types/protyle.d.ts
+++ b/app/src/types/protyle.d.ts
@@ -127,8 +127,8 @@ interface IBreadcrumb {
}
interface ILuteOptions extends IMarkdownConfig {
- emojis?: IObject;
- emojiSite?: string;
+ emojis: IObject;
+ emojiSite: string;
headingAnchor?: boolean;
lazyLoadImage?: string;
}