docs: function cook (trv) {
    // There are two changes that we need to make to convert a TV to a TRV:
    // 1.  The TV of TemplateCharacter :: \ EscapeSequence is the
    //     SV of EscapeSequence.
    // 2.  LineContinuation is replaced with the empty string
    // Adjusting CRLF and CR -> LF should already have happened.
    return trv.replace(
      ESCAPE_SEQUENCE,
      (escSeq) => {
        const chr = escSeq.charAt(1)
        const repl = SV_TABLE[chr]
        if (repl === undefined) { // eslint-disable-line no-undefined
          return chr
        }
        if (typeof repl === 'function') {
          return repl(escSeq)
        }
        return repl
      })
  }