I’ve ended up wrapping their JS file in a function so that it can be imported into Joplin, so next version will support mhchem.

image