Class: Formatters::HTMLWithPygments
- Inherits:
-
Metadown::Renderer
- Object
- Metadown::Renderer
- Formatters::HTMLWithPygments
- Defined in:
- lib/cloudpress/formatters/html_with_pygments.rb
Instance Method Summary collapse
Instance Method Details
#block_code(code, language) ⇒ Object
3 4 5 |
# File 'lib/cloudpress/formatters/html_with_pygments.rb', line 3 def block_code(code, language) Pygments.highlight(code, :lexer => language) end |