Module: Stack::Filters::Convertors
- Includes:
- Register
- Defined in:
- lib/stack/filters/convertors.rb
Instance Method Summary
collapse
Methods included from Register
extensions, included, invoke_filter
Instance Method Details
#from_less(content) ⇒ Object
14
15
16
|
# File 'lib/stack/filters/convertors.rb', line 14
def from_less(content)
Less::Engine.new(content).to_css
end
|
#from_markdown(content) ⇒ Object
6
7
8
|
# File 'lib/stack/filters/convertors.rb', line 6
def from_markdown(content)
Maruku.new(content).to_html
end
|
#from_textile(content) ⇒ Object
10
11
12
|
# File 'lib/stack/filters/convertors.rb', line 10
def from_textile(content)
RedCloth.new(content).to_html
end
|