lib/cc/analyzer/formatters/html_formatter.rb in codeclimate-0.38.1 vs lib/cc/analyzer/formatters/html_formatter.rb in codeclimate-0.39.0

- old
+ new

@@ -58,10 +58,19 @@ @warnings ||= [] end def render_readup_markdown(body) html = Redcarpet::Render::HTML.new(escape_html: false, link_attributes: { target: "_blank" }) - Redcarpet::Markdown.new(html, autolink: true, fenced_code_blocks: true, tables: true).render(body) + Redcarpet::Markdown.new(html, markdown_options).render(body) + end + + def markdown_options + { + autolink: true, + fenced_code_blocks: true, + no_intra_emphasis: true, + tables: true, + } end end end end end