focused styling

This commit is contained in:
John Lancaster
2026-07-30 01:02:26 -05:00
parent 37461fd880
commit 7b1e5fcacb
2 changed files with 27 additions and 242 deletions
+12 -4
View File
@@ -11,7 +11,15 @@ window.MathJax = {
}
};
const mathJaxScript = document.createElement('script');
mathJaxScript.src = 'https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js';
mathJaxScript.async = true;
document.head.appendChild(mathJaxScript);
document$.subscribe(() => {
MathJax.startup.output.clearCache();
MathJax.typesetClear();
MathJax.texReset();
MathJax.typesetPromise();
});
component$.subscribe(({ ref }) => {
if (ref.classList.contains('md-annotation')) {
MathJax.typesetPromise([ref]);
}
});