mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 13:21:33 +08:00
chore(test): test for no language tag for codeblock export
This commit is contained in:
parent
2fbdec4448
commit
f02cca7385
1 changed files with 12 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue