class Redcarpet::Render::StripDown - redcarpet-3.4.0 Documentation

# class Redcarpet::Render::StripDown

Markdown-stripping renderer. Turns Markdown into plaintext Thanks to @toupeira (Markus Koller)

### Public Instance Methods

header(text, header_level) click to toggle source

    # File lib/redcarpet/render_strip.rb, line 43
    def header(text, header_level)
      text + "\n"
    end

image(link, title, content) click to toggle source

    # File lib/redcarpet/render_strip.rb, line 34
    def image(link, title, content)
      content &&= content + " "
      "#{content}#{link}"
    end

link(link, title, content) click to toggle source

Other methods where we don't return only a specific argument

    # File lib/redcarpet/render_strip.rb, line 30
    def link(link, title, content)
      "#{content} (#{link})"
    end

paragraph(text) click to toggle source

    # File lib/redcarpet/render_strip.rb, line 39
    def paragraph(text)
      text + "\n"
    end

table(header, body) click to toggle source

    # File lib/redcarpet/render_strip.rb, line 47
    def table(header, body)
      "#{header}#{body}"
    end

table_cell(content, alignment) click to toggle source

    # File lib/redcarpet/render_strip.rb, line 55
    def table_cell(content, alignment)
      content + "\t"
    end

table_row(content) click to toggle source

    # File lib/redcarpet/render_strip.rb, line 51
    def table_row(content)
      content + "\n"
    end