Add support for MathJax version 3 and typesetMath attribute to config [#6073], with thanks to Equinor for sponsoring the related development!