focused styling
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user