diff options
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 8008b04..f12cdd4 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb | |||
@@ -11,4 +11,9 @@ module ApplicationHelper | |||
11 | link_to title, {:sort => col, :dir => direction}, {:class => css_class} | 11 | link_to title, {:sort => col, :dir => direction}, {:class => css_class} |
12 | end | 12 | end |
13 | 13 | ||
14 | def markdown(text) | ||
15 | options = %i[] | ||
16 | Markdown.new(text, *options).to_html.html_safe | ||
17 | end | ||
18 | |||
14 | end | 19 | end |