Class: Kramdown::Converter::Html

Inherits:
Object
  • Object
show all
Defined in:
lib/darkmouun/kramdown/converter/html.rb

Instance Method Summary collapse

Instance Method Details

#convert_span(el, indent) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/darkmouun/kramdown/converter/html.rb', line 8

def convert_span(el, indent)
  if el.attr.empty?
    "[#{inner(el, indent)}]"
  else
    format_as_span_html('span', el.attr, inner(el, indent))
  end
end