Tagged templates are awesome! However, there are certain rules for escape sequences (if used) inside a template literal:
- Anything starting with \u will be regarded as a Unicode escape sequence
- Anything starting with \x will be regarded as a hexadecimal escape sequence
- Anything starting with \ and then a digit will be regarded as an octal escape sequence
Therefore, as of now, even with tagged templates, you cannot make use of languages such as LaTeX with template strings because of the syntax of these languages.