Class: CommonMarker::CustomHtmlRenderer
- Inherits:
-
HtmlRenderer
- Object
- HtmlRenderer
- CommonMarker::CustomHtmlRenderer
- Defined in:
- lib/common_marker/custom_html_render.rb
Instance Method Summary collapse
Instance Method Details
#tasklist(node) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/common_marker/custom_html_render.rb', line 2 def tasklist(node) return '' unless tasklist?(node) state = if checked?(node) 'checked="" disabled=""' else 'disabled=""' end " class=\"task-list-item\"><input type=\"checkbox\" #{state} /" end |