feat(markdown): preserve figures

This commit is contained in:
Elian Doran
2025-04-05 03:23:31 +03:00
parent 319cccfb15
commit c80d016305
2 changed files with 23 additions and 0 deletions

View File

@@ -268,4 +268,15 @@ describe("Markdown export", () => {
}
});
it("preserves figures", () => {
const html = /*html*/trimIndentation`\
<figure class="image">
<img style="aspect-ratio:991/403;" src="Jump to Note_image.png" width="991"
height="403">
</figure>
`;
const expected = `<figure class="image"><img style="aspect-ratio:991/403;" src="Jump to Note_image.png" width="991" height="403"></figure>`;
expect(markdownExportService.toMarkdown(html)).toBe(expected);
});
});