Add smartypants

This commit is contained in:
Jonathan Rudenberg 2012-08-21 23:22:02 -04:00
parent 72067ba038
commit decb9d8430
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,8 @@ 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)
Pygments.highlight(code, lexer: language)
end