Permalink
Browse files

Autolink in detailed description

  • Loading branch information...
sigmike committed Jul 6, 2014
1 parent d73c62e commit 066e5a3c07aa620c268ae7cb4e230925ffe63be6
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/helpers/application_helper.rb
@@ -66,7 +66,7 @@ def render_flash_message
def render_markdown(source)
return nil unless source
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML.new(safe_links_only: true, filter_html: true))
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML.new(safe_links_only: true, filter_html: true), autolink: true)
html = markdown.render(source)
clean = Sanitize.clean(html, Sanitize::Config::RELAXED)
clean.html_safe

0 comments on commit 066e5a3

Please sign in to comment.