about summary refs log tree commit diff stats
path: root/app/helpers
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 12:12:25 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-11 12:12:25 -0400
commite09aa803cf3905c82c29dbaa9101cc4a4639cc5a (patch)
tree507ffb887044bfbcd2fd5cf89f8fe587654d01ba /app/helpers
parent3a628945ade35f3ba351ba90e271608520753174 (diff)
downloadthoughts-e09aa803cf3905c82c29dbaa9101cc4a4639cc5a.tar.gz
thoughts-e09aa803cf3905c82c29dbaa9101cc4a4639cc5a.tar.bz2
thoughts-e09aa803cf3905c82c29dbaa9101cc4a4639cc5a.zip
We're on Markdown now
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb5
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
14end 19end