Skip to content

Commit d269231

Browse files
Adds tailwind list style classes (#472)
1 parent 68d8097 commit d269231

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

addon/utils/compile-markdown.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,18 @@ class HBSRenderer extends marked.Renderer {
208208
`;
209209
}
210210

211+
list(text, ordered) {
212+
if (ordered) {
213+
return `
214+
<ol class="docs-list-decimal">${text}</ol>
215+
`;
216+
} else {
217+
return `
218+
<ul class="docs-list-disc">${text}</ul>
219+
`;
220+
}
221+
}
222+
211223
table(header, body) {
212224
if (body) body = '<tbody>' + body + '</tbody>';
213225

0 commit comments

Comments
 (0)