Class: Redcarpet::Render::StripDown
- Defined in:
- lib/redcarpet/render_strip.rb
Overview
Markdown-stripping renderer. Turns Markdown into plaintext Thanks to @toupeira (Markus Koller)
Instance Method Summary collapse
- #header(text, header_level, anchor) ⇒ Object
-
#link(link, title, content) ⇒ Object
Other methods where the text content is in another argument.
- #paragraph(text) ⇒ Object
Methods inherited from Base
Constructor Details
This class inherits a constructor from Redcarpet::Render::Base
Instance Method Details
#header(text, header_level, anchor) ⇒ Object
38 39 40 |
# File 'lib/redcarpet/render_strip.rb', line 38 def header(text, header_level, anchor) text + "\n" end |
#link(link, title, content) ⇒ Object
Other methods where the text content is in another argument
30 31 32 |
# File 'lib/redcarpet/render_strip.rb', line 30 def link(link, title, content) content end |
#paragraph(text) ⇒ Object
34 35 36 |
# File 'lib/redcarpet/render_strip.rb', line 34 def paragraph(text) text + "\n" end |