module MinimalMarkdown

Constants

VERSION

Public Class Methods

render(text, style: :markdown) click to toggle source
# File lib/minimal_markdown.rb, line 15
def self.render(text, style: :markdown)
  tree = MinimalMarkdown::Parser.new(text, style: style).parse
  MinimalMarkdown::HtmlRenderer.new(tree).render
end