Using mathpix-markdown-it in web browsers
If you are loading mathpix-markdown-it from a CDN into a web page, there is no need to install anything. Simply use a script tag that loads mathpix-markdown-it from the CDN. E.g.,
<script>
let script = document.createElement('script');
script.src = "https://cdn.jsdelivr.net/npm/mathpix-markdown-it@1.0.40/es5/bundle.js";
document.head.append(script);
script.onload = function() {
const isLoaded = window.loadMathJax();
if (isLoaded) {
console.log('Styles loaded!')
}
}
</script>