This commit is contained in:
Jonathan Rudenberg 2012-08-22 11:15:21 -04:00
parent decb9d8430
commit c0ca040c2c
19 changed files with 366 additions and 237 deletions

View file

@ -5,6 +5,10 @@ RubyPython.start python_exe: 'python2.6' if ENV['RACK_ENV'] == 'production'
class MarkdownHTML < Redcarpet::Render::HTML
include Redcarpet::Render::SmartyPants
def initialize(options={})
super options.merge(with_toc_data: true)
end
def block_code(code, language)
Pygments.highlight(code, lexer: language)
end