small fix for markdownify

This commit is contained in:
Maxwell Salzberg 2011-08-29 19:38:51 -07:00
parent 224b59322b
commit e30c84ee96

View file

@ -75,7 +75,7 @@ module Diaspora
"<br />" "<br />"
end end
def link(link, title, content) def link(link, title, 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))