mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
feat(markdown): preserve figures
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user