Class: Hamlit::Filters::Markdown

Inherits:
TiltBase show all
Defined in:
lib/hamlit/filters/markdown.rb

Instance Method Summary collapse

Methods inherited from TiltBase

#explicit_require?, render

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Hamlit::Filters::Base

Instance Method Details

#compile(node) ⇒ Object



4
5
6
7
# File 'lib/hamlit/filters/markdown.rb', line 4

def compile(node)
  require 'tilt/redcarpet' if explicit_require?
  compile_with_tilt(node, 'markdown')
end