-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to include an entire Mathjax config? #9
Comments
As a plugin we can't control when MathJax gets loaded, this is actually a source of raciness in the plugin as is. If this is something that can be done after MathJax gets loaded then it should be possible to add as a feature otherwise I think it will be too unstable for widespread usage... |
I've quickly looked into this but in theory |
I'm not entirely sure how the library version of Mathjax works, but when it's included in web pages through a script tag, there are separate options for either loading the config strictly before Mathjax loads (https://docs.mathjax.org/en/v2.7-latest/configuration.html#using-in-line-configuration-options) or strictly afterward (https://docs.mathjax.org/en/v2.7-latest/configuration.html#configuring-mathjax-after-it-is-loaded). |
We can't count on anything which requires modifying HTML since we may get loaded after configuration has already started. In MathJax 3 there is a possibility to rebuild the internal objects after startup but it seems to only half work. What specific things would you hope to load? Is it really the configuration object itself or is there a specific bit of functionality you want (equation numbering?). |
This isn't really an issue per se, but I'm wondering if there's an easy way to adapt this plugin to just use an entirely customized Mathjax configuration. For example, I have something of the following form I use for other previews:
Then e.g. I include it in my website in the following way (this gets compiled + embedding as a script on each webpage):
Any idea if there's a way to point this plugin at a config like this (or something similar), as opposed to just a list of macros?
The text was updated successfully, but these errors were encountered: