From 221aad439b7639f8c0c141ead90216e265322f0d Mon Sep 17 00:00:00 2001 From: Robert Wagner Date: Mon, 4 May 2020 09:23:56 -0400 Subject: [PATCH] Adds tailwind list style classes --- addon/utils/compile-markdown.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/addon/utils/compile-markdown.js b/addon/utils/compile-markdown.js index 675d27bc6..8c87bc598 100644 --- a/addon/utils/compile-markdown.js +++ b/addon/utils/compile-markdown.js @@ -208,6 +208,18 @@ class HBSRenderer extends marked.Renderer { `; } + list(text, ordered) { + if (ordered) { + return ` +
    ${text}
+ `; + } else { + return ` + + `; + } + } + table(header, body) { if (body) body = '' + body + '';