Module: Jekyll::Converters::Markdown::RedcarpetParser::WithRouge

Defined in:
lib/jekyll/converters/markdown/redcarpet_parser.rb

Instance Method Summary collapse

Instance Method Details

#block_code(code, lang) ⇒ Object



42
43
44
45
46
47
48
# File 'lib/jekyll/converters/markdown/redcarpet_parser.rb', line 42

def block_code(code, lang)
  code = "<pre>#{super}</pre>"

  output = "<div class=\"highlight\">"
  output << add_code_tags(code, lang)
  output << "</div>"
end