mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 20:02:28 +08:00
chore(test): test for no language tag for codeblock export
This commit is contained in:
parent
2fbdec4448
commit
f02cca7385
@ -37,5 +37,16 @@ describe("Markdown export", () => {
|
|||||||
\`\`\``;
|
\`\`\``;
|
||||||
|
|
||||||
expect(markdownExportService.toMarkdown(html)).toBe(expected);
|
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…
x
Reference in New Issue
Block a user