Class: Rack::Markdown::Renderer::PygmentsHTML

Inherits:
Redcarpet::Render::HTML
  • Object
show all
Defined in:
lib/rack/markdown/renderer.rb

Instance Method Summary collapse

Instance Method Details

#block_code(code, language) ⇒ Object



3
4
5
# File 'lib/rack/markdown/renderer.rb', line 3

def block_code(code, language)
  Pygments.highlight(code, :lexer => language)
end