Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: add md + frontmatter to export all options

Abdullah Attaccadab6a1095
diff --git a/apps/web/src/components/note/index.tsx b/apps/web/src/components/note/index.tsx
index 73b3e34de..95acf075f 100644
--- a/apps/web/src/components/note/index.tsx
+++ b/apps/web/src/components/note/index.tsx
@@ -472,7 +472,7 @@ const menuItems: (note: any, items?: any[]) => MenuItem[] = (
{
type: "button",
key: "copy-as-text",
- tooltip: `Export as Text`,
+ tooltip: `Copy as Text`,
title: "Text",
icon: Plaintext.path,
onClick: () => copyNote(note.id, "txt")
@@ -480,7 +480,7 @@ const menuItems: (note: any, items?: any[]) => MenuItem[] = (
{
type: "button",
key: "copy-as-markdown",
- tooltip: `Export as Markdown`,
+ tooltip: `Copy as Markdown`,
title: "Markdown",
icon: Markdown.path,
onClick: () => copyNote(note.id, "md")
diff --git a/apps/web/src/dialogs/settings/backup-export-settings.ts b/apps/web/src/dialogs/settings/backup-export-settings.ts
index fa16c4bfa..c008168da 100644
--- a/apps/web/src/dialogs/settings/backup-export-settings.ts
+++ b/apps/web/src/dialogs/settings/backup-export-settings.ts
@@ -179,6 +179,11 @@ export const BackupExportSettings: SettingsGroup[] = [
{ value: "-", title: "Select format" },
{ value: "txt", title: "Text" },
{ value: "md", title: "Markdown", premium: true },
+ {
+ value: "md-frontmatter",
+ title: "Markdown + Frontmatter",
+ premium: true
+ },
{ value: "html", title: "HTML", premium: true }
],
selectedOption: () => "-",
@@ -186,7 +191,7 @@ export const BackupExportSettings: SettingsGroup[] = [
if (!db.notes || value === "-") return;
if (await verifyAccount())
await exportNotes(
- value as "txt" | "md" | "html",
+ value as "txt" | "md" | "html" | "md-frontmatter",
db.notes.all.map((n) => n.id)
);
}