Skip to content

Commit

Permalink
web: template not disabling when copying as markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Mar 5, 2024
1 parent da36784 commit c415b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/common/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit c415b11

Please sign in to comment.