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

This commit is contained in:
Jonathan Rudenberg 2012-08-22 14:40:02 -04:00
parent 137baa322e
commit 3dcb9cd05d
3 changed files with 7 additions and 19 deletions

View file

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