mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
inline attachment images into single HTML export
This commit is contained in:
@@ -174,15 +174,14 @@ async function exportToZip(taskContext, branch, format, res, setHeaders = true)
|
||||
|
||||
if (attachments.length > 0) {
|
||||
meta.attachments = attachments
|
||||
.filter(attachment => ["canvasSvg", "mermaidSvg"].includes(attachment.name))
|
||||
.map(attachment => ({
|
||||
|
||||
name: attachment.name,
|
||||
title: attachment.title,
|
||||
role: attachment.role,
|
||||
mime: attachment.mime,
|
||||
dataFileName: getDataFileName(
|
||||
null,
|
||||
attachment.mime,
|
||||
baseFileName + "_" + attachment.name,
|
||||
baseFileName + "_" + attachment.title,
|
||||
existingFileNames
|
||||
)
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user