another shot at fixing markdownify

This commit is contained in:
Maxwell Salzberg 2011-08-29 19:43:24 -07:00
parent e30c84ee96
commit 83b99890ba

View file

@ -75,7 +75,10 @@ module Diaspora
"<br />" "<br />"
end end
def link(link, title, content='') def link(link, title, content)
#hax
content ||=''
return autolink(link, 'url') if link == content return autolink(link, 'url') if link == content
if link =~ Regexp.new(Regexp.escape(content)) if link =~ Regexp.new(Regexp.escape(content))