diff options
author | Agathe Porte <microjoe@microjoe.org> | 2019-09-13 14:52:11 +0200 |
---|---|---|
committer | Agathe Porte <microjoe@microjoe.org> | 2019-09-13 14:52:11 +0200 |
commit | 8ea63c592d4f332bb7b88babae33e068eeaa0a19 (patch) | |
tree | a2f30240e388a137d7cc9f038d2a90209ad73b3d | |
download | pelican-render-math-mathml-8ea63c592d4f332bb7b88babae33e068eeaa0a19.tar.gz pelican-render-math-mathml-8ea63c592d4f332bb7b88babae33e068eeaa0a19.zip |
initial commit
-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) |