diff options
-rw-r--r-- | __init__.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..c79c8f7 --- /dev/null +++ b/__init__.py @@ -0,0 +1,12 @@ +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) |