diff --git a/latex/latex.py b/latex/latex.py index 37ddee4..902dd51 100644 --- a/latex/latex.py +++ b/latex/latex.py @@ -11,21 +11,28 @@ writing equations in by using `\begin{equation}`...`\end{equation}`. from pelican import signals +# Reference about dynamic loading of MathJax can be found at http://docs.mathjax.org/en/latest/dynamic.html +# The https cdn address can be found at http://www.mathjax.org/resources/faqs/#problem-https latexScript = """ - """ @@ -44,5 +51,5 @@ def register(): """ Plugin registration """ - signals.article_generator_context.connect(addLatex) - signals.page_generator_context.connect(addLatex) + signals.article_generate_context.connect(addLatex) + signals.pages_generate_context.connect(addLatex)