class Kramdown::Converter::Html

def convert_math(el, indent, opts)

def convert_math(el, indent, opts)
  el = Marshal.load(Marshal.dump(el)) # so that the original is not changed
  el.attr['class'] ||= ''
  el.attr['class'] += (el.attr['class'].empty? ? '' : ' ') + 'math'
  type = 'span'
  type = 'div' if el.options[:category] == :block
  "<#{type}#{html_attributes(el)}>#{escape_html(el.value)}</#{type}>#{type == 'div' ? "\n" : ''}"
end