Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

feat: add new snippets to the default preferences to support all blocks

Smaug673929bbf4965019
diff --git a/frontend/app/stores/preferences/constants.ts b/frontend/app/stores/preferences/constants.ts
index fdd634d3..5ac0c31a 100644
--- a/frontend/app/stores/preferences/constants.ts
+++ b/frontend/app/stores/preferences/constants.ts
@@ -38,14 +38,25 @@ export const DEFAULT_PREFERENCES = {
navigation: true as boolean,
},
snippets: [
- { id: ':::blue', label: ':::blue\n${0}\n:::' },
- { id: ':::green', label: ':::green\n${0}\n:::' },
- { id: ':::yellow', label: ':::yellow\n${0}\n:::' },
- { id: ':::grey', label: ':::grey\n${0}\n:::' },
- { id: ':::details', label: ':::details\n${0}\n:::' },
- { id: ':::center', label: ':::center\n${0}\n:::' },
- { id: ':::property', label: ':::property ${0}\n\n:::' },
- { id: ':::warning', label: ':::warning ${0}\n\n:::' },
+ { id: '!blue', label: ':::blue\n${0}\n:::' },
+ { id: '!green', label: ':::green\n${0}\n:::' },
+ { id: '!yellow', label: ':::yellow\n${0}\n:::' },
+ { id: '!red', label: ':::red\n${0}\n:::' },
+ { id: '!grey', label: ':::grey\n${0}\n:::' },
+ { id: '!teal', label: ':::teal\n${0}\n:::' },
+ { id: '!details', label: ':::details\n${0}\n:::' },
+ { id: '!info-red', label: ':::info-red\n${0}\n:::' },
+ { id: '!info-blue', label: ':::info-blue\n${0}\n:::' },
+ { id: '!info-teal', label: ':::info-teal\n${0}\n:::' },
+ { id: '!center', label: ':::center\n${0}\n:::' },
+ { id: '!columns', label: ':::columns\n${0}\n:::' },
+ { id: '!column', label: ':::column\n${0}\n:::' },
+ { id: '!no-print', label: ':::no-print\n${0}\n:::' },
+ { id: '!property', label: ':::property ${0}\n\n:::' },
+ { id: '!warning', label: ':::warning ${0}\n\n:::' },
+ { id: '!frame', label: ':::frame ${0}\n\n:::' },
+ { id: '!card', label: ':::card ${0}\n\n:::' },
+ { id: '!pannel', label: ':::pannel ${0}\n\n:::' },
] as ANode<string>[],
editorFontFamily: 'JetBrains Mono' as string,
editorFontSize: 14 as number,