From bb8fd2b054e09190e6642231f70e85e554808e02 Mon Sep 17 00:00:00 2001 From: contributor Date: Wed, 3 May 2023 16:19:28 +0300 Subject: [PATCH] zip export - set note title as document.title --- src/services/export/zip.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/export/zip.js b/src/services/export/zip.js index c58afca9f..6bbd1b6ed 100644 --- a/src/services/export/zip.js +++ b/src/services/export/zip.js @@ -248,6 +248,7 @@ async function exportToZip(taskContext, branch, format, res, setHeaders = true) if (noteMeta.format === 'html') { if (!content.substr(0, 100).toLowerCase().includes(" element will make sure external links are openable - https://github.com/zadam/trilium/issues/1289#issuecomment-704066809 content = ` @@ -256,10 +257,11 @@ async function exportToZip(taskContext, branch, format, res, setHeaders = true) + ${htmlTitle}
-

${utils.escapeHtml(title)}

+

${htmlTitle}

${content}