markdown and textile liquid filters
did
committed Aug 20, 2013
commit b0dbd6f03a9a7363b071bd6faa16efd9a87bc733
Showing 2
changed files with
5 additions
and 0 deletions
locomotive/wagon/liquid/filters/text.rb b/lib/locomotive/wagon/liquid/filters/text.rb
+4
-0
| @@ | @@ -34,6 +34,10 @@ module Locomotive |
| end | |
| def textile(input) | |
| + | ::RedCloth.new(input).to_html |
| + | end |
| + | |
| + | def markdown(input) |
| Locomotive::Wagon::Markdown.render(input) | |
| end | |
locomotivecms_wagon.gemspec
+1
-0
| @@ | @@ -22,6 +22,7 @@ Gem::Specification.new do |gem| |
| gem.add_dependency 'thin', '~> 1.5.1' | |
| gem.add_dependency 'activesupport', '~> 3.2.11' | |
| gem.add_dependency 'locomotivecms_solid', '~> 0.2.1' | |
| + | gem.add_dependency 'RedCloth', '~> 4.2.8' |
| gem.add_dependency 'redcarpet', '~> 3.0.0' | |
| gem.add_dependency 'dragonfly', '~> 0.9.12' | |
| gem.add_dependency 'sprockets', '~> 2.0' | |