Init
This commit is contained in:
commit
72067ba038
19 changed files with 7758 additions and 0 deletions
9
lib/markdown_html.rb
Normal file
9
lib/markdown_html.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue