diff --git a/apps/edit-docs/src/edit-docs.ts b/apps/edit-docs/src/edit-docs.ts index 8cb6b898d..40163330d 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) {