mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 00:49:00 +01:00
fix(export/share): use right extension for clones
This commit is contained in:
parent
fded714f18
commit
9cf7fa1997
@ -126,7 +126,8 @@ async function exportToZip(taskContext: TaskContext, branch: BBranch, format: Ex
|
|||||||
const notePath = parentMeta.notePath.concat([note.noteId]);
|
const notePath = parentMeta.notePath.concat([note.noteId]);
|
||||||
|
|
||||||
if (note.noteId in noteIdToMeta) {
|
if (note.noteId in noteIdToMeta) {
|
||||||
const fileName = getUniqueFilename(existingFileNames, `${baseFileName}.clone.${format === "html" ? "html" : "md"}`);
|
const extension = provider.mapExtension("text", "text/html", "", format);
|
||||||
|
const fileName = getUniqueFilename(existingFileNames, `${baseFileName}.clone.${extension}`);
|
||||||
|
|
||||||
const meta: NoteMeta = {
|
const meta: NoteMeta = {
|
||||||
isClone: true,
|
isClone: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user