class Kramdown::Converter::Html
def add_syntax_highlighter_to_class_attr(attr, lang = nil)
Add the syntax highlighter name to the 'class' attribute of the given attribute hash. And
def add_syntax_highlighter_to_class_attr(attr, lang = nil) (attr['class'] = (attr['class'] || '') + @highlighter_class).lstrip! attr['class'].sub!(/\blanguage-\S+|(^)/) { "language-#{lang}#{$1 ? ' ' : ''}" } if lang end