class Redcarpet::Render::StripDown
Thanks to @toupeira (Markus Koller)
Markdown-stripping renderer. Turns Markdown into plaintext
def header(text, header_level)
def header(text, header_level) text + "\n" end
def image(link, title, content)
def image(link, title, content) content &&= content + " " "#{content}#{link}" end
def link(link, title, content)
def link(link, title, content) "#{content} (#{link})" end
def paragraph(text)
def paragraph(text) text + "\n" end
def table(header, body)
def table(header, body) "#{header}#{body}" end
def table_cell(content, alignment)
def table_cell(content, alignment) content + "\t" end
def table_row(content)
def table_row(content) content + "\n" end