This commit is contained in:
Jonathan Rudenberg 2012-08-21 23:15:29 -04:00
commit 72067ba038
19 changed files with 7758 additions and 0 deletions

9
lib/markdown_html.rb Normal file
View file

@ -0,0 +1,9 @@
require 'pygments.rb'
RubyPython.start python_exe: 'python2.6' if ENV['RACK_ENV'] == 'production'
class MarkdownHTML < Redcarpet::Render::HTML
def block_code(code, language)
Pygments.highlight(code, lexer: language)
end
end