function latex(strs) {
// ...
}
let doc = latex`
\newcommand{\fun}{\textbf{Fun!}}
\newcommand{\unicode}{\textbf{Unicode!}}
\newcommand{\xerxes}{\textbf{King!}}
Breve over the h goes \u{h}ere
`;
function tag(strs) {
strs[0] === undefined
strs.raw[0] === "\\unicode ";
strs[1] === " U";
strs.raw[1] === " \\u{55}";
}
tag`\unicode ${"and"} \u{55}`
// syntax error
let untagged = `\unicode and \u{55}`
<!doctype html>
<html>
<head>
<script>
"use </script"
let s = html`</script>`
</script>
</head>
</html>