Class: Redcarpet::Render::StripDown

Inherits:
Base
  • Object
show all
Defined in:
lib/redcarpet/render_strip.rb

Overview

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

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Redcarpet::Render::Base

Instance Method Details

#header(text, header_level) ⇒ Object



36
37
38
# File 'lib/redcarpet/render_strip.rb', line 36

def header(text, header_level)
  text + "\n"
end

Other methods where the text content is in another argument



28
29
30
# File 'lib/redcarpet/render_strip.rb', line 28

def link(link, title, content)
  content
end

#paragraph(text) ⇒ Object



32
33
34
# File 'lib/redcarpet/render_strip.rb', line 32

def paragraph(text)
  text + "\n"
end