Class: RedcarpetCompat

### Home Classes Methods

### In Files

- lib/redcarpet/compat.rb

### Parent

Object

### Methods

- ::new
- #to_html

### Class/Module Index

Quicksearch

- Redcarpet
- Redcarpet::Markdown
- Redcarpet::Render
- Redcarpet::Render::ManPage
- Redcarpet::Render::Safe
- Redcarpet::Render::SmartyHTML
- Redcarpet::Render::SmartyPants
- Redcarpet::Render::StripDown
- Redcarpet::Render::XHTML
- Object
- RedcarpetCompat

No matching classes.

# RedcarpetCompat

Deprecated: Please use the default API to parse Markdown documents ; this layer will be removed in Redcarpet 4.0.

Creates an instance of Redcarpet with the RedCloth API.

### Constants

EXTENSION_MAP
RENDERER_OPTIONS

### Attributes

text[RW]

### Public Class Methods

new(text, *exts) click to toggle source

    # File lib/redcarpet/compat.rb, line 10
    def initialize(text, *exts)
      exts_hash, render_hash = *parse_extensions_and_renderer_options(exts)
      @text = text
      renderer = Redcarpet::Render::HTML.new(render_hash)
      @markdown = Redcarpet::Markdown.new(renderer, exts_hash)
    end

### Public Instance Methods

to_html(*_dummy) click to toggle source

    # File lib/redcarpet/compat.rb, line 17
    def to_html(*_dummy)
      @markdown.render(text)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.