# File lib/asciidoctor/parser.rb, line 1196
  def self.catalog_inline_biblio_anchor text, block, document
    if InlineBiblioAnchorRx =~ text
      # QUESTION should we sub attributes in reftext (like with regular anchors)?
      unless document.register :refs, [(id = $1), (Inline.new block, :anchor, (reftext = %([#{$2 || id}])), :type => :bibref, :id => id), reftext]
        warn %(asciidoctor: WARNING: #{document.reader.path}: id assigned to bibliography anchor already in use: #{id})
      end
    end
    nil
  end