Class: Jekyll::Converters::Markdown

### Home Classes Methods

### In Files

- lib/jekyll/converters/markdown.rb
- lib/jekyll/converters/markdown/kramdown_parser.rb
- lib/jekyll/converters/markdown/maruku_parser.rb
- lib/jekyll/converters/markdown/rdiscount_parser.rb
- lib/jekyll/converters/markdown/redcarpet_parser.rb

### Parent

Jekyll::Converter

### Namespace

- CLASS Jekyll::Converters::Markdown::KramdownParser
- CLASS Jekyll::Converters::Markdown::MarukuParser
- CLASS Jekyll::Converters::Markdown::RDiscountParser
- CLASS Jekyll::Converters::Markdown::RedcarpetParser

### Methods

- #convert
- #matches
- #output_ext
- #setup

### Files

- LICENSE

### Class/Module Index

Quicksearch

- Jekyll
- Jekyll::Command
- Jekyll::Commands
- Jekyll::Commands::Build
- Jekyll::Commands::Doctor
- Jekyll::Commands::New
- Jekyll::Commands::Serve
- Jekyll::Configuration
- Jekyll::Converter
- Jekyll::Converters
- Jekyll::Converters::Identity
- Jekyll::Converters::Markdown
- Jekyll::Converters::Markdown::KramdownParser
- Jekyll::Converters::Markdown::MarukuParser
- Jekyll::Converters::Markdown::RDiscountParser
- Jekyll::Converters::Markdown::RedcarpetParser
- Jekyll::Converters::Markdown::RedcarpetParser::CommonMethods
- Jekyll::Converters::Markdown::RedcarpetParser::WithPygments
- Jekyll::Converters::Markdown::RedcarpetParser::WithoutPygments
- Jekyll::Converters::Textile
- Jekyll::Convertible
- Jekyll::Deprecator
- Jekyll::Draft
- Jekyll::Excerpt
- Jekyll::FatalException
- Jekyll::Filters
- Jekyll::Generator
- Jekyll::Generators
- Jekyll::Generators::Pagination
- Jekyll::GistTag
- Jekyll::Layout
- Jekyll::Page
- Jekyll::Pager
- Jekyll::Plugin
- Jekyll::Post
- Jekyll::RelatedPosts
- Jekyll::Site
- Jekyll::Site::Cleaner
- Jekyll::StaticFile
- Jekyll::Stevenson
- Jekyll::Tags
- Jekyll::Tags::HighlightBlock
- Jekyll::Tags::IncludeTag
- Jekyll::Tags::PostComparer
- Jekyll::Tags::PostUrl
- Jekyll::URL
- Date
- Enumerable
- Hash
- Object

No matching classes.

# Jekyll::Converters::Markdown

### Public Instance Methods

convert(content) click to toggle source

    # File lib/jekyll/converters/markdown.rb, line 37
    def convert(content)
      setup
      @parser.convert(content)
    end

matches(ext) click to toggle source

    # File lib/jekyll/converters/markdown.rb, line 28
    def matches(ext)
      rgx = '^\.(' + @config['markdown_ext'].gsub(',','|') +')$'
      ext =~ Regexp.new(rgx, Regexp::IGNORECASE)
    end

output_ext(ext) click to toggle source

    # File lib/jekyll/converters/markdown.rb, line 33
    def output_ext(ext)
      ".html"
    end

setup() click to toggle source

    # 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.