Sha256: 781d84cc268046ccd1dba68a2ddc27a09aa12ebddb0af8efc4faf5663a3d2b9c

Contents?: true

Size: 335 Bytes

Versions: 3

Compression:

Stored size: 335 Bytes

Contents

class CommonMarker::CustomHtmlRenderer < CommonMarker::HtmlRenderer
  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
editor_js-0.4.0 lib/common_marker/custom_html_render.rb
editor_js-0.3.6.1 lib/common_marker/custom_html_render.rb
editor_js-0.3.6 lib/common_marker/custom_html_render.rb