Converter
# File lib/jekyll/converters/textile.rb, line 28 def convert(content) setup RedCloth.new(content).to_html end
# File lib/jekyll/converters/textile.rb, line 19 def matches(ext) rgx = '(' + @config['textile_ext'].gsub(',','|') +')' ext =~ Regexp.new(rgx, Regexp::IGNORECASE) end
# File lib/jekyll/converters/textile.rb, line 24 def output_ext(ext) ".html" end
# File lib/jekyll/converters/textile.rb, line 9 def setup return if @setup require 'redcloth' @setup = true rescue LoadError STDERR.puts 'You are missing a library required for Textile. Please run:' STDERR.puts ' $ [sudo] gem install RedCloth' raise FatalException.new("Missing dependency: RedCloth") end
Generated with the Darkfish Rdoc Generator 2.