A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: add in empty p tags for printing
Muhammad Alic041819930df
diff --git a/apps/web/src/common/export.ts b/apps/web/src/common/export.tsindex 428316693..2e476694e 100644--- a/apps/web/src/common/export.ts+++ b/apps/web/src/common/export.ts@@ -31,9 +31,11 @@ export async function exportToPDF(): Promise<boolean> {if (!content) return false;const { default: printjs } = await import("print-js");+ const _content = content.replaceAll(/<p [a-z\-="]*><\/p>/gm, "<p> </p>");return new Promise((resolve) => {printjs({- printable: content,+ printable: _content,+ targetStyles: "*",type: "raw-html",documentTitle: title,header: '<h3 class="custom-h3">My custom header</h3>',