     $2           ?= ''
     $1           += $2
     raw_content   = $3 ? ''
-    id            = @XXX_raw_id_from_content 'comment', raw_content.trim()
+    id            = @XXX_register_content 'comment', raw_content.trim()
     return "#{$1}\x14#{id}\x13"
   #.........................................................................................................
   R = R.replace @XXX_do_bracketed_pattern, ( _, $1, $2, $3 ) =>

    debug 'comment_by_ids     ', @XXX_comment_by_ids
    debug 'raw_content_by_ids ', @XXX_raw_content_by_ids
    debug 'command_by_ids     ', @XXX_command_by_ids
    tokens      = md_parser.parse md_source, environment
    # @set_meta R, 'environment', environment
    confluence.write token for token in tokens

  return R

#-----------------------------------------------------------------------------------------------------------
@XXX_register_content = ( kind, raw, parsed = null ) ->
  id = @XXX_registry.length
  @XXX_registry.push { id, kind, raw, parsed, }
  return id

#-----------------------------------------------------------------------------------------------------------
@$XXX_expand_html_comments = ( text ) ->
  ### TAINT code duplication ###
  return $ ( event, send ) =>
    #.......................................................................................................
    ### !!! ###
    if false and @.select event, '.', [ 'text', 'code', ]
      is_comment                  = yes
      [ type, name, text, meta, ] = event
      for stretch in text.split @XXX_html_comment_id_pattern
