def mathjax_for_rst(pelicanobj, mathjax_script):
 docutils_settings = pelicanobj.settings.get('DOCUTILS_SETTINGS', {})
 docutils_settings['math_output'] = 'MathJax'
 pelicanobj.settings['DOCUTILS_SETTINGS'] = docutils_settings
 rst_add_mathjax.mathjax_script = mathjax_script

def mathjax_for_rst ( pelicanobj , mathjax_script ) : docutils_settings = pelicanobj . settings . get ( 'DOCUTILS_SETTINGS' , { } ) docutils_settings [ 'math_output' ] = 'MathJax' pelicanobj . settings [ 'DOCUTILS_SETTINGS' ] = docutils_settings rst_add_mathjax . mathjax_script = mathjax_script
setup math for rst .