Class: Redcarpet::Render::HTMLWithAlbino

Inherits:
HTML
  • Object
show all
Defined in:
lib/blogit/renderers/html_with_albino.rb

Overview

Create a custom renderer that allows highlighting of code blocks

Instance Method Summary collapse

Instance Method Details

#block_code(code, language) ⇒ Object



5
6
7
# File 'lib/blogit/renderers/html_with_albino.rb', line 5

def block_code(code, language)
  Albino.colorize(code, language)
end