Revert "Switch to albino for now, pygments.rb is segfaulting on heroku"
This reverts commit 3dcb9cd05d
.
This commit is contained in:
parent
787fafd49d
commit
c1ebf108af
3 changed files with 19 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue