# File lib/rd/rd2html-lib.rb, line 328
    def apply_to_RefToElement(element, content)
      content = content.join("")
      if anchor = refer(element)
        content = content.sub(/^function#/, "")
        %Q[<a href="\##{anchor}">#{content}</a>]
      else
        # warning?
        label = hyphen_escape(element.to_label)
        %Q[<!-- Reference, RDLabel "#{label}" doesn't exist -->] +
          %Q[<em class="label-not-found">#{content}</em><!-- Reference end -->]
        #' 
      end
    end