Problem/Motivation
On the face of it, it looked at first glance that we can't use the MathJax module with Drupal 10 because the you cannot use the MathJax CKEditor plugin within a CKEditor v5 Text format.
Custom configuration
HOWEVER, it seems that switching Configuration Type from Text Format to Custom on the /admin/config/content/mathjax
saves the day.
I saw that it spurts out a JSON array but I had no idea quite what to do with that and the link the MathJax documentation doesn't help - certainly not for me anyway but enabling this setting has sorted thing out and I am able again to use $this$ and $that$ to get what I want to show!
In summary
So, for anyone faced with the same WFT, there's the solution for you, simply:
1) Visit /admin/config/content/mathjax
.
2) Tick the Custom radio button under Configuration Type.
3) Save the configuration.
4) Carry on wrapping up your wares in $...$ and $$...$$
I hope someone else finds this useful and I apologies is this advice already appears somewhere else and I've missed it
Issue fork mathjax-3325374
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
cilefen CreditAttribution: cilefen commentedNo matter what we will need the default configuration to be compatible with Drupal 10.
Comment #5
pookmish CreditAttribution: pookmish commentedComment #6
mp CreditAttribution: mp commentedIt doesn´t work with Drupal 9.5.1 and MathJax 4.0.1
in MathJax settings i have enabled CDN, Configuration Type Custom, left everything in Custom Configuration as it is and enabled it on admin pages.
CKEditor always makes an error and tells me that it only uses HTML based text formats
found https://github.com/isaul32/ckeditor5-math - maybe an alternative?
Comment #7
cilefen CreditAttribution: cilefen commented@gr4phic3r Can you confirm if the proposed change in this issue fixes this for you?
Comment #9
cilefen CreditAttribution: cilefen commented@pookmish Thank you for the patch. This looks good.
Comment #11
cilefen CreditAttribution: cilefen commentedComment #12
cilefen CreditAttribution: cilefen commented