diff options
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d7ab161..44b39d9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -58,7 +58,7 @@ module ApplicationHelper def markdown(text, options = [:smart]) rd = RDiscount.new(text.to_s, *options) - rd.to_html + force_utf8(rd.to_html) end def feed_icon(url, alt_title = "Atom feed", size = :small) @@ -263,6 +263,7 @@ module ApplicationHelper :alt => t("application_helper.more_info") }), "$('#{dom_id}').toggle()", :class => "more_info") end + FILE_EXTN_MAPPINGS = { '.cpp' => 'cplusplus-file', '.c' => 'c-file', |