2010-07-06 15:00:02 +00:00
|
|
|
module Locomotive
|
|
|
|
module Liquid
|
2010-07-23 20:09:54 +00:00
|
|
|
module Filters
|
2010-07-06 15:00:02 +00:00
|
|
|
module Text
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-07-06 15:00:02 +00:00
|
|
|
def textile(input)
|
2010-07-13 00:46:17 +00:00
|
|
|
::RedCloth.new(input).to_html
|
2010-07-06 15:00:02 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-07-06 15:00:02 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
|
2010-07-06 15:00:02 +00:00
|
|
|
::Liquid::Template.register_filter(Text)
|
2010-07-23 20:09:54 +00:00
|
|
|
|
|
|
|
end
|
2010-07-06 15:00:02 +00:00
|
|
|
end
|
2010-07-23 20:09:54 +00:00
|
|
|
end
|