code: def mathjax_for_rst(pelicanobj, mathjax_script, mathjax_settings):
      
      docutils_settings = pelicanobj.settings.get('DOCUTILS_SETTINGS', {})
      docutils_settings.setdefault('math_output', 'MathJax %s' % mathjax_settings['source'])
      pelicanobj.settings['DOCUTILS_SETTINGS'] = docutils_settings
      rst_add_mathjax.mathjax_script = mathjax_script
docs: Setup math for RST