module Jekyll module Filters def textilize(input) RedCloth.new(input).to_html end def date_to_rfc2822(date) date.rfc2822 end def date_to_string(date) date.strftime("%d %b %Y") end def date_to_long_string(date) date.strftime("%d %B %Y") end def date_to_xmlschema(date) date.xmlschema end def xml_escape(input) input.gsub("&", "&").gsub("<", "<").gsub(">", ">") end def number_of_words(input) input.split.length end # Returns all content before the first-encountered