mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
web: fix html export snapshot
This commit is contained in:
@@ -246,8 +246,8 @@ export class NoteContextMenuModel extends BaseProperties {
|
||||
);
|
||||
if (format === "html") {
|
||||
return content
|
||||
.replace(/(name="created-on" content=")(.+?)"/, '$1xxx"')
|
||||
.replace(/(name="last-edited-on" content=")(.+?)"/, '$1xxx"');
|
||||
.replace(/(name="created-at" content=")(.+?)"/, '$1xxx"')
|
||||
.replace(/(name="updated-at" content=")(.+?)"/, '$1xxx"');
|
||||
}
|
||||
return content;
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
content="This is Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1Test 1"
|
||||
/>
|
||||
<title>Test 1 - Notesnook</title>
|
||||
<meta name="created-at" content="22-12-2023 11:33 AM" />
|
||||
<meta name="updated-at" content="22-12-2023 11:33 AM" />
|
||||
<meta name="created-at" content="xxx" />
|
||||
<meta name="updated-at" content="xxx" />
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -38,7 +38,11 @@ export function template(data: TemplateData) {
|
||||
data.favorite ? `<meta name="favorite" content="${data.favorite}" />` : ""
|
||||
}
|
||||
${data.color ? `<meta name="color" content="${data.color}" />` : ""}
|
||||
${data.tags ? `<meta name="tags" content="${data.tags.join(", ")}" />` : ""}
|
||||
${
|
||||
data.tags && data.tags.length
|
||||
? `<meta name="tags" content="${data.tags.join(", ")}" />`
|
||||
: ""
|
||||
}
|
||||
<link rel="stylesheet" href="https://app.notesnook.com/assets/editor-styles.css?d=${
|
||||
process.env.NN_BUILD_TIMESTAMP || "1690887574068"
|
||||
}">
|
||||
|
||||
Reference in New Issue
Block a user