pelican-plugins / render-math

Pelican plugin that renders mathematics via the MathJax JavaScript engine
Other
30 stars 7 forks source link

render-math do not work with pelican 4.8.0 #21

Closed hiyoucai closed 2 years ago

hiyoucai commented 2 years ago

I have installed and configured the relevant plugin according to your manual. as follows.

First step: install your plugin.

python -m pip install pelican-render-math

Second step: specify the pelicanconf.py configuration. as follows.

PLUGINS = ["pelican.plugins.render_math"]
MATH_JAX = {'color': 'blue'}

Third step: write the markdown mathematic formulate(one x.md file). as follows.

Title: x
Date: 2022-11-10 00:20
Modified: 2022-11-10 00:20
Category: x
Slug: x
Authors: x
Summary: x

<p>
formulate:$x^2$
The area of a circle is: `A_\text{c} = (\pi/4) d^2`.
</p>

Fourth step: compile and build the pelican project. as follow.

pelican content
pelican --listen

Finally, opening the browser. But I found that the math formulate was not change. It's still the same old thing like origin $x^2$.

It doesn't work. Who can tell me what to do? thanks.

Appendix:

python --version 
Python 3.9.7
python -m pip list                                                                                                                             
Package             Version
------------------- -----------
beautifulsoup4      4.11.1
blinker             1.5
commonmark          0.9.1
docutils            0.19
feedgenerator       2.0.0
importlib-metadata  4.12.0
Jinja2              3.1.2
Markdown            3.4.1
MarkupSafe          2.1.1
mathjax             0.1.2
pelican             4.8.0
pelican-render-math 1.0.3
pip                 22.2.2
Pygments            2.13.0
python-dateutil     2.8.2
pytz                2022.2.1
rich                12.5.1
setuptools          57.4.0
six                 1.16.0
smartypants         2.0.1
soupsieve           2.3.2.post1
typogrify           2.0.7
Unidecode           1.3.4
zipp                3.8.1
hiyoucai commented 2 years ago

Sorry.ok now. Just remove the p tag.