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.options[:attr] ||= {} el.options[:attr]['class'] ||= '' el.options[:attr]['class'] += (el.options[: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