Skip to content

Commit

Permalink
Adds tailwind list style classes (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner authored May 4, 2020
1 parent 68d8097 commit d269231
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions addon/utils/compile-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,18 @@ class HBSRenderer extends marked.Renderer {
`;
}

list(text, ordered) {
if (ordered) {
return `
<ol class="docs-list-decimal">${text}</ol>
`;
} else {
return `
<ul class="docs-list-disc">${text}</ul>
`;
}
}

table(header, body) {
if (body) body = '<tbody>' + body + '</tbody>';

Expand Down

0 comments on commit d269231

Please sign in to comment.