class Kramdown::Converter::Html
def convert_codespan(el, indent, opts)
def convert_codespan(el, indent, opts) el = Marshal.load(Marshal.dump(el)) # so that the original is not changed lang = el.attr.delete('lang') if lang && HIGHLIGHTING_AVAILABLE result = CodeRay.scan(el.value, lang.to_sym).html(:wrap => :span, :css => @doc.options[:coderay_css]).chomp "<code#{html_attributes(el)}>#{result}</code>" else "<code#{html_attributes(el)}>#{escape_html(el.value)}</code>" end end