module Jekyll::Converters::Markdown::RedcarpetParser::WithRouge

Public Instance Methods

block_code(code, lang) click to toggle source
# 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

Protected Instance Methods

rouge_formatter(lexer) click to toggle source
# File lib/jekyll/converters/markdown/redcarpet_parser.rb, line 51
def rouge_formatter(lexer)
  Rouge::Formatters::HTML.new(:wrap => false)
end