Add smartypants
This commit is contained in:
parent
72067ba038
commit
decb9d8430
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue