from pelican import signals def pelican_init(pelicanobj): docutils_settings = pelicanobj.settings.get('DOCUTILS_SETTINGS', {}) docutils_settings.setdefault('math_output', 'MathML') pelicanobj.settings['DOCUTILS_SETTINGS'] = docutils_settings def register(): """Plugin registration""" signals.initialized.connect(pelican_init)