How to enable mhchem extension?

Created on 23 January 2017, over 7 years ago
Updated 5 June 2024, 21 days ago

I'm trying to follow the examples documented at https://docs.moodle.org/27/en/Chemistry_notation_using_mhchem#via_MathJax for enabling the mhchem extension. I've created a custom configuration at admin/config/content/mathjax which looks like this:

{
  TeX: {
    extensions: ["mhchem.js","color.js","AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
  },
  "tex2jax":{
    "inlineMath":[
      ["$","$"],
      ["\\(","\\)"],
      ["\[\ce{","}\]"],
      ["$$\ce{","}$$"],
      ["\(\ce{","}\)"]
    ],
    "processEscapes":"true"
  },
  "showProcessingMessages":"true",
  "messageStyle":"none"
}

This isn't working, so two questions:

- Does this module support extensions?
- Any advice for getting mhchem working properly?

πŸ’¬ Support request
Status

Active

Version

4.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States ebeyrent

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024