Revert "Switch to albino for now, pygments.rb is segfaulting on heroku"

This reverts commit 3dcb9cd05d.
This commit is contained in:
Jonathan Rudenberg 2012-08-22 18:49:29 -04:00
parent 787fafd49d
commit c1ebf108af
3 changed files with 19 additions and 7 deletions

View file

@ -1,10 +1,12 @@
require 'albino'
require 'pygments.rb'
RubyPython.start python_exe: 'python2.6' if ENV['RACK_ENV'] == 'production'
class MarkdownHTML < Redcarpet::Render::HTML
include Redcarpet::Render::SmartyPants
def block_code(code, language)
language ? Albino.colorize(code, language) : code
Pygments.highlight(code, lexer: language)
end
def table(header, body)