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

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SirClickALot created an issue. See original summary.

cilefen’s picture

Version: 4.0.1 » 4.x-dev
Category: Support request » Task
Priority: Normal » Critical

No matter what we will need the default configuration to be compatible with Drupal 10.

pookmish made their first commit to this issue’s fork.

pookmish’s picture

Status: Active » Needs review
mp’s picture

It 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?

cilefen’s picture

@gr4phic3r Can you confirm if the proposed change in this issue fixes this for you?

  • cilefen committed f28bb6c8 on 4.x authored by pookmish
    Issue #3325374 by pookmish: Using MathJax with Drupal 10 / CKEditor 5
    
cilefen’s picture

@pookmish Thank you for the patch. This looks good.

  • cilefen committed 0fdfab50 on 3.0.x authored by pookmish
    Issue #3325374 by pookmish: Using MathJax with Drupal 10 / CKEditor 5
    
cilefen’s picture

Status: Needs review » Fixed
cilefen’s picture

Title: Using MathJax with Drupal 10 / CKEditor 5 » Make it possible to enable the text filter on text formats with CKEditor 5

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.