Class: Stratus::MarkdownTag
- Inherits:
-
Liquid::Block
- Object
- Liquid::Block
- Stratus::MarkdownTag
- Defined in:
- lib/stratus/tags/markdown.rb
Instance Method Summary collapse
-
#render(context) ⇒ Object
include Liquid::StandardFilters.
Instance Method Details
#render(context) ⇒ Object
include Liquid::StandardFilters
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/stratus/tags/markdown.rb', line 6 def render(context) # if defined?(BlueCloth) # BlueCloth.new( super.to_s ).to_html # else # puts "You must had BlueCloth installed to render textile!" # super.to_s # end if defined?(Maruku) Maruku.new( super.to_s ).to_html else puts "You must had Maruku installed to render textile!" super.to_s end end |