This commit is contained in:
Zef Hemel
2023-02-23 15:33:51 +01:00
parent 495012f796
commit c1528eff08
6 changed files with 88 additions and 11 deletions
+2 -2
View File
@@ -30,12 +30,12 @@ Deno.test("Markdown render", async () => {
// console.log("HTML", html);
});
Deno.test("Smart hard break test", () => {
Deno.test("Smart hard break test", async () => {
const example = `**Hello**
*world!*`;
const lang = buildMarkdown([]);
const tree = parse(lang, example);
const html = renderMarkdownToHtml(tree, {
const html = await renderMarkdownToHtml(tree, {
failOnUnknown: true,
smartHardBreak: true,
});