-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
processEscapes set to true doesn't work #2327
Comments
I can reproduce the issue and am looking into it. Thanks for the report. |
Thanks, it was working properly in the previous 3.0.0 version if it helps |
It turns out to be the new |
Here is a patch that you can use for now until the next release. Add this to your MathJax configuration: MathJax = {
startup: {
pageReady() {
const options = MathJax.startup.document.options;
const BaseMathItem = options.MathItem;
options.MathItem = class FixedMathItem extends BaseMathItem {
assistiveMml(document) {
if (this.display !== null) super.assistiveMml(document);
}
};
return MathJax.startup.defaultPageReady();
}
}
}; This patches the |
thanks a lot, it worked ... |
Hello, I'm also facing this issue. I can confirm that the workaround brings back the typesetting, but a lot of error messages pop up in the console (same with setting processEscapes to false): Is this expected from the workaround? The input tested can be found here: https://pastebin.com/raw/48veiAsx Works with 3.0.0 but not 3.0.1. I can also confirm that setting Thank you @dpvc for providing a workaround AND a fix! :) Now waiting for next release! ~Nico PS: congrats and thanks for all the work done for 3.0! |
@NicolasCARPi, the error messages you are getting are actually a different issue. The units of |
* hypernext: fix the unable to set cookie issue in acceptance tests yarn and composer update. also don't throw exception on invalid return false instead of throw exception for invalid token_team increase sleep for mysql fix test login fix circleci config for new dev:populate cmd add populate-config for phpunit use workaround for mathjax/MathJax#2327 use a yaml config file for dev:populate update zipstream update js dependencies add yarn clean command fix default_write to user instead of team add datetime on duplicate too workaround mysql bug with several current_timestamp columns call the version 3.4.0-alpha only trigger jsoneditor if needed and target div is here probably fix the login issue make sure file is an image before looking at exif
Don't process escaped characters in a11y and menu extensions. mathjax/MathJax#2327.
@dpvc I know that asciimath is not finished in v3 yet but while your patch fixes the error there is weird behaviour in ascimath. \$ used as masciimath delimiters are not escaped. |
@KyrietS, The TeX and AsciiMath input jax operate independently, and so the TeX input jax is unaware of the AsciiMath delimiters that you have specified. So both the TeX input jax and AsciiMath input jax think they are to process the One solution would be to disable the escape processing of the TeX input jax. Add
to the |
@KyrietS, no problem. |
using version 3.0.1, using "processEscapes" set to "true" stops MathJax from working, giving the error "TypeError: Q.setAttribute is not a function". The folloowing is the minimal example that I tested:
The text was updated successfully, but these errors were encountered: