   ///g
 
 #-----------------------------------------------------------------------------------------------------------
-@_ESC.escape_html_comments_raw_spans_and_commands = ( text ) =>
+@_ESC.escape_html_comments_raw_spans_and_commands = ( state, text ) =>
   R = text
   R = @_ESC.escape_escape_chrs R
   #.........................................................................................................

        is_raw = not is_raw
        if is_raw
          id      = parseInt stretch, 10
          entry   = @_ESC.retrieve_entry id
          content = entry[ 'raw' ]
          send [ '.', 'raw', content, ( @copy meta ), ]
        else

    $2           ?= ''
    $1           += $2
    raw_content   = $3 ? ''
    key           = @_ESC.register_content state, 'comment', raw_content.trim()
    return "#{$1}\x15#{key}\x13"
  #.........................................................................................................
  R = R.replace @_ESC.do_bracketed_pattern, ( _, $1, $2, $3 ) =>
