markdeep = {
window.markdeepOptions = { mode: 'script', detectMath: false };
const md = await require("https://morgan3d.github.io/markdeep/0.10/markdeep.min.js");
const unescape = /(\\[$`])/g;
return (strings, ...exprs) => {
let template = '';
for (let i = 0; i < strings.length - 1; i++) {
template += strings.raw[i] + exprs[i];
}
template += strings.raw[strings.length - 1];
template = template.replace(unescape, '`');
const output = window.markdeep.format(template);
return html`
<meta charset="utf-8">
<style>${window.markdeep.stylesheet()}</style>
${output}
`;
};
}