chore(test): test for no language tag for codeblock export

This commit is contained in:
Elian Doran 2024-12-17 23:42:31 +02:00
parent 2fbdec4448
commit f02cca7385
No known key found for this signature in database

View File

@ -37,5 +37,16 @@ describe("Markdown export", () => {
\`\`\``;
expect(markdownExportService.toMarkdown(html)).toBe(expected);
})
});
it("supports code block with no language tag", () => {
const html = trimIndentation`\
<pre><code>Hello</code></pre>`;
const expected = trimIndentation`\
\`\`\`
Hello
\`\`\``;
expect(markdownExportService.toMarkdown(html)).toBe(expected);
});
});