diff --git a/extras/markdowner.rb b/extras/markdowner.rb index 901e3e3..ca67d06 100644 --- a/extras/markdowner.rb +++ b/extras/markdowner.rb @@ -27,7 +27,7 @@ class Markdowner # make links have rel=nofollow ng.css("a").each do |h| - h[:rel] = "nofollow" unless URI.parse(h[:href]).host.nil? + h[:rel] = "nofollow" unless (URI.parse(h[:href]).host.nil? rescue false) end ng.at_css("body").inner_html