feat(docs-edit): don't include HTML wrappers

This commit is contained in:
Elian Doran
2025-04-12 00:27:15 +03:00
parent 9c0c1bad2d
commit 460014e54f
2 changed files with 7 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ async function exportData(noteId: string, format: "html" | "markdown", outputPat
const exportOpts: AdvancedExportOptions = {};
if (format === "html") {
exportOpts.skipHtmlTemplate = true;
exportOpts.customRewriteLinks = (originalRewriteLinks, getNoteTargetUrl) => {
return (content: string, noteMeta: NoteMeta) => {
content = content.replace(/src="[^"]*api\/images\/([a-zA-Z0-9_]+)\/[^"]*"/g, (match, targetNoteId) => {