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
make title optional in text exports
ammarahm-ed6b93dfea17e2
diff --git a/apps/mobile/src/utils/index.js b/apps/mobile/src/utils/index.jsindex 87c1c929a..d25b0181f 100755--- a/apps/mobile/src/utils/index.js+++ b/apps/mobile/src/utils/index.js@@ -333,7 +333,7 @@ export const BUTTON_TYPES = {};let htmlToText;-export async function toTXT(note) {+export async function toTXT(note, notitle) {let text;if (note.locked) {text = note.content.data;@@ -344,7 +344,9 @@ export async function toTXT(note) {text = htmlToText.convert(text, {selectors: [{ selector: 'img', format: 'skip' }]});- text = `${note.title}\n \n ${text}`;+ if (!notitle) {+ text = `${note.title}\n \n ${text}`;+ }return text;}