lib/kramdown/converter/latex.rb in kramdown-0.13.8 vs lib/kramdown/converter/latex.rb in kramdown-0.14.0

- old
+ new

@@ -95,10 +95,10 @@ "\\begin{figure}#{attrs}\n\\begin{center}\n#{img}\n\\end{center}\n\\caption{#{escape(el.children.first.attr['alt'])}}\n#{latex_link_target(el, true)}\n\\end{figure}#{attrs}\n" end def convert_codeblock(el, opts) show_whitespace = el.attr['class'].to_s =~ /\bshow-whitespaces\b/ - lang = el.attr['lang'] + lang = extract_code_language(el.attr) if show_whitespace || lang options = [] options << "showspaces=%s,showtabs=%s" % (show_whitespace ? ['true', 'true'] : ['false', 'false']) options << "language=#{lang}" if lang options << "basicstyle=\\ttfamily\\footnotesize,columns=fixed,frame=tlbr"