Class: Retter::Markdown::CodeRayRenderer
- Inherits:
-
Redcarpet::Render::HTML
- Object
- Redcarpet::Render::HTML
- Retter::Markdown::CodeRayRenderer
- Defined in:
- lib/retter/markdown/code_ray_renderer.rb
Instance Method Summary collapse
Instance Method Details
#block_code(code, lang) ⇒ Object
6 7 8 |
# File 'lib/retter/markdown/code_ray_renderer.rb', line 6 def block_code(code, lang) CodeRay.scan(code, lang ? lang.intern : :plain).div end |