mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
feat(import/markdown): preserve fractional widths
This commit is contained in:
@@ -267,12 +267,12 @@ describe("Markdown export", () => {
|
||||
|
||||
it("preserves figures", () => {
|
||||
const html = /*html*/trimIndentation`\
|
||||
<figure class="image">
|
||||
<figure class="image" style="width:53.44%;">
|
||||
<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>`;
|
||||
const expected = `<figure class="image" style="width:53.44%;"><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