You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a MathJax preamble defined in my front and back card templates. This is respected in some places (views/previews), but not in others (editors).
I would have expected and liked for the WYSIWYG editor to also include these, though I understand that the MathJax instance used here does not have access to the context of the card.
Would there be a good workaround available?
The text was updated successfully, but these errors were encountered:
I think that would be a great solution and definitely something I would love to see. This would serve much the same use-case as the existing Latex preamble
I have been working a bit on this and discovered a few dumps in the road that might require the input of someone more knowledgeable and opinionated than myself.
Currently the MathJax object is stored as a global singleton, which is nice for memory purposes, but slightly problematic in that it can be mutated using macros like \newcommand{}, which could lead to clashes between notes/notetypes. See: mathjax/MathJax#3275
Even as is, the state will 'bleed' from one note to the other in the browser and during a study session.
I have a MathJax preamble defined in my front and back card templates. This is respected in some places (views/previews), but not in others (editors).
I would have expected and liked for the WYSIWYG editor to also include these, though I understand that the MathJax instance used here does not have access to the context of the card.
Would there be a good workaround available?
The text was updated successfully, but these errors were encountered: