I'm creating a rich text editor with Tiptap together with MathJax to render Math nicely. I'm trying to get it working first, so I've used the full version:
In Vue (Tiptap is based on VueJS) I'm rendering the passed in TeX and creating MathML as output. The code used for this is pretty straight forward:
```javascript
// Render the tex to MathML
this.$refs.render.innerHTML = window.MathJax.tex2mml(TeX, {em: 12, ex: 6, display: false});
// Add the necessary stylesheet to the head.
let sheet = document.querySelector('#MJX-CHTML-styles');
if (sheet) sheet.parentNode.removeChild(sheet);
document.head.appendChild(MathJax.chtmlStylesheet());
```
This results in a proper result in Firefox, where it looks like this:
However, when I do the same thing in a chromium based browser (Brave Version 1.20.110, Chromium: 88.0.4324.192 (Official Build) (x86_64)) it looks like this:
It looks to me like the CSS styling is not being properly loaded; however it's there in both Firefox as well as the Brave browser in the inspector:
Is there anything obvious that I have missed, that could cause this weird rendering in a chromium based browser?
Thanks in advance!
Jelle