module MdocsKramdown::Converter::MdocsHtml

Public Class Methods

new(root, options) click to toggle source
Calls superclass method
# File lib/mdocs_kramdown/converter/mdocs_html.rb, line 4
def initialize(root, options)
  super(root, options)
end

Public Instance Methods

convert_blockquote(el, indent) click to toggle source
Calls superclass method
# File lib/mdocs_kramdown/converter/mdocs_html.rb, line 8
def convert_blockquote(el, indent)
  return super unless el.options[:admonition]

  classes = el.attr[:types]
  title = el.attr[:title]

  format_as_indented_block_html('div', { class: "card #{classes.join(' ')}" },
                                (title ? format_as_indented_block_html('div', { class: 'card-header' }, title.strip, indent + 2) : '') +
                                format_as_indented_block_html('div', { class: 'card-body' },
                                                              format_as_indented_block_html('div', { class: 'card-text' }, inner(el, indent + 2), indent + 2),
                                                              indent + 1),
                                indent)
end
convert_table(el, indent) click to toggle source
Calls superclass method
# File lib/mdocs_kramdown/converter/mdocs_html.rb, line 22
def convert_table(el, indent)
  el.attr[:class] = 'table'
  super
end