lib/yard/templates/helpers/markup/rdoc_markup.rb in yard-0.6.7 vs lib/yard/templates/helpers/markup/rdoc_markup.rb in yard-0.6.8
- old
+ new
@@ -67,11 +67,13 @@
# Disable auto-link of URLs
def handle_special_HYPERLINK(special)
@hyperlink ? special.text : super
end
- def accept_paragraph(par)
- @hyperlink = !!(par.text =~ /\{(https?:|mailto:|link:|www\.)/)
+ def accept_paragraph(*args)
+ par = args.last
+ text = par.respond_to?(:txt) ? par.txt : par.text
+ @hyperlink = !!(text =~ /\{(https?:|mailto:|link:|www\.)/)
super
end
end
end
end
\ No newline at end of file