Class: Rack::Markdown::Renderer
- Inherits:
-
Object
- Object
- Rack::Markdown::Renderer
- Defined in:
- lib/rack/markdown/renderer.rb
Defined Under Namespace
Classes: PygmentsHTML
Class Method Summary collapse
Class Method Details
.render(text) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rack/markdown/renderer.rb', line 8 def self.render(text) renderer = PygmentsHTML.new(:hard_wrap => true, :filter_html => true) = { :autolink => true, :no_intra_emphasis => true, :fenced_code_blocks => true, :lax_html_blocks => true, :stikethrough => true, :superscript => true } Redcarpet::Markdown.new(renderer, ).render(text) end |