Module: CanRenderMarkdown

Defined in:
lib/can_render_markdown.rb,
lib/can_render_markdown/version.rb,
lib/can_render_markdown/formatter.rb,
lib/can_render_markdown/active_record_plugin.rb

Defined Under Namespace

Modules: ActiveRecordPlugin Classes: Formatter

Constant Summary collapse

VERSION =
"0.2.1"

Class Method Summary collapse

Class Method Details

.formatify(input) ⇒ Object



8
9
10
# File 'lib/can_render_markdown.rb', line 8

def self.formatify(input)
  Formatter.new(input, ERB::Util).escape.to_html
end