# File lib/jekyll/converters/markdown.rb, line 37 def convert(content) setup @parser.convert(content) end
# File lib/jekyll/converters/markdown.rb, line 28 def matches(ext) rgx = '(' + @config['markdown_ext'].gsub(',','|') +')' ext =~ Regexp.new(rgx, Regexp::IGNORECASE) end
# File lib/jekyll/converters/markdown.rb, line 33 def output_ext(ext) ".html" end
# File lib/jekyll/converters/markdown.rb, line 9 def setup return if @setup @parser = case @config['markdown'] when 'redcarpet' RedcarpetParser.new @config when 'kramdown' KramdownParser.new @config when 'rdiscount' RDiscountParser.new @config when 'maruku' MarukuParser.new @config else STDERR.puts "Invalid Markdown processor: #{@config['markdown']}" STDERR.puts " Valid options are [ maruku | rdiscount | kramdown | redcarpet ]" raise FatalException.new("Invalid Markdown process: #{@config['markdown']}") end @setup = true end
Generated with the Darkfish Rdoc Generator 2.