class RDoc::Markup::ToLabel

def handle_regexp_TIDYLINK(target)

def handle_regexp_TIDYLINK(target)
  text = target.text
  return text unless text =~ /\{(.*?)\}\[(.*?)\]/ or text =~ /(\S+)\[(.*?)\]/
  $1
end