lib/lalala/markdown/html_renderer.rb in lalala-4.1.0.dev.321 vs lib/lalala/markdown/html_renderer.rb in lalala-4.1.0.dev.322

- old
+ new

@@ -60,9 +60,13 @@ if link and @options[:safe_links_only] and !safe_link(link) return "" end + if content =~ /^\<(img|div|span|strong|em)/ + content = helpers.raw(content) + end + options = (@options[:link_attributes] || {}).merge(title: title) helpers.link_to(content, link, options) end def enhanced_autolink(scheme, link, link_type)