class RDoc::Markup::ToHtmlCrossref

def cross_reference name, text = nil, code = true, rdoc_ref: false

def cross_reference name, text = nil, code = true, rdoc_ref: false
  lookup = name
  name = name[1..-1] unless @show_hash if name[0, 1] == '#'
  if !(name.end_with?('+@', '-@')) and name =~ /(.*[^#:])?@/
    text ||= [CGI.unescape($'), (" at <code>#{$1}</code>" if $~.begin(1))].join("")
    code = false
  else
    text ||= name
  end
  link lookup, text, code, rdoc_ref: rdoc_ref
end