Skip to content

Build your personal knowledge base with Trilium Notes

feat(edit-docs): remove data-list-item-id

Elian Dorand2c6081537ff
diff --git a/apps/edit-docs/src/edit-docs.ts b/apps/edit-docs/src/edit-docs.ts
index 8cb6b898dd..40163330d0 100644
--- a/apps/edit-docs/src/edit-docs.ts
+++ b/apps/edit-docs/src/edit-docs.ts
@@ -185,6 +185,9 @@ async function exportData(noteId: string, format: ExportFormat, outputPath: stri
return components.join("/");
});
+ // Remove data-list-item-id created by CKEditor for lists
+ content = content.replace(/ data-list-item-id="[^"]*"/g, "");
+
return content;
function findAttachment(targetAttachmentId: string) {