docs: def hash_codes(text, hashes):
      """Hashes inline code tags.
  
      Code tags can begin with an arbitrary number of back-ticks, as long
      as the close contains the same number of back-ticks. This allows
      back-ticks to be used within the code tag.
  
      HTML entities (&, <, >, ", ') are automatically escaped inside the
      code tag.
      """
      def sub(match):
          code = '<code>{}</code>'.format(escape(match.group(2)))
          hashed = hash_text(code, 'code')
          hashes[hashed] = code
          return hashed
      return re_code.sub(sub, text)