diff --git a/spec/services/export/md.spec.ts b/spec/services/export/md.spec.ts index 980f7fa2c..f9a4e4ab1 100644 --- a/spec/services/export/md.spec.ts +++ b/spec/services/export/md.spec.ts @@ -37,5 +37,16 @@ describe("Markdown export", () => { \`\`\``; expect(markdownExportService.toMarkdown(html)).toBe(expected); - }) + }); + + it("supports code block with no language tag", () => { + const html = trimIndentation`\ +
Hello
`;
+ const expected = trimIndentation`\
+ \`\`\`
+ Hello
+ \`\`\``;
+
+ expect(markdownExportService.toMarkdown(html)).toBe(expected);
+ });
});
\ No newline at end of file