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

- (Object) block_code(code, language)


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

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