Module: MarkupHelper

Included in:
ActionView::Base
Defined in:
app/helpers/markup_helper.rb

Overview

This helper abstracts the several markup methods into one method ‘markup()`.

For example, on a Page, use:

<div id="content">
  <%= markup(@page.content) %>
</div>

Instance Method Summary collapse

Instance Method Details

#markup(text) ⇒ Object



12
13
14
# File 'app/helpers/markup_helper.rb', line 12

def markup(text)
  markdown replace_quick_link_tags text
end