Module: Textile2md

Defined in:
lib/textile2md.rb,
lib/textile2md/version.rb

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.convert(textile) ⇒ Object



6
7
8
9
10
11
# File 'lib/textile2md.rb', line 6

def self.convert(textile)
  html = RedCloth.new(textile).to_html
  markdown = ReverseMarkdown.convert(html)

  markdown
end