Sha256: fa284c0d17b2a2dfc921935e680dea8a935a2721a141cc05998665d652490b41

Contents?: true

Size: 217 Bytes

Versions: 18

Compression:

Stored size: 217 Bytes

Contents

# create a custom renderer that allows highlighting of code blocks
class Redcarpet::Render::HTMLWithAlbino < Redcarpet::Render::HTML
  
  def block_code(code, language)
    Albino.colorize(code, language)
  end
  
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
blogit-1.0.0.rc1 lib/blogit/renderers/html_with_albino.rb
blogit-0.8.0 lib/blogit/renderers/html_with_albino.rb
blogit-0.7.0 lib/blogit/renderers/html_with_albino.rb
blogit-0.6.0 lib/blogit/renderers/html_with_albino.rb
blogit-0.5.1 lib/blogit/renderers/html_with_albino.rb
blogit-0.5.0 lib/blogit/renderers/html_with_albino.rb
blogit-0.4.8 lib/blogit/renderers/html_with_albino.rb
blogit-0.4.7 lib/blogit/renderers/html_with_albino.rb
blogit-0.4.6 lib/blogit/renderers/html_with_albino.rb
blogit-0.4.5 lib/blogit/renderers/html_with_albino.rb
blogit-0.4.4 lib/blogit/renderers/html_with_albino.rb
blogit-0.4.3 lib/blogit/renderers/html_with_albino.rb
blogit-0.4.2 lib/blogit/renderers/html_with_albino.rb
blogit-0.4.1 lib/blogit/renderers/html_with_albino.rb
blogit-0.4.0 lib/blogit/renderers/html_with_albino.rb
blogit-0.3.2 lib/blogit/renderers/html_with_albino.rb
blogit-0.3.1 lib/blogit/renderers/html_with_albino.rb
blogit-0.3.0 lib/blogit/renderers/html_with_albino.rb