Skip to content

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

web: template not disabling when copying as markdown

Abdullah Attac415b114a6cc
diff --git a/apps/web/src/common/export.ts b/apps/web/src/common/export.ts
index cf91fd657..fc9665d49 100644
--- a/apps/web/src/common/export.ts
+++ b/apps/web/src/common/export.ts
@@ -151,7 +151,7 @@ export async function exportNote(
: rawContent);
const exported = await note
- .export(format === "pdf" ? "html" : format, content, disableTemplate)
+ .export(format === "pdf" ? "html" : format, content, !disableTemplate)
.catch((e: Error) => {
console.error(note.data, e);
showToast("error", `Failed to export note "${note.title}": ${e.message}`);