Module: Creole2md

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

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.convert(text) ⇒ String

Convert text in creole markup to markdown.

Parameters:

  • (String)

Returns:

  • (String)


12
13
14
15
# File 'lib/creole2md.rb', line 12

def convert(text)
  html = Creole.creolize(text)
  md = ReverseMarkdown.convert(html, github_flavored: true)
end