Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script not added on direct templates #35

Open
leotrs opened this issue Jul 31, 2016 · 0 comments
Open

Script not added on direct templates #35

leotrs opened this issue Jul 31, 2016 · 0 comments

Comments

@leotrs
Copy link

leotrs commented Jul 31, 2016

The mathjax script is not being added on direct templates that include math that should be rendered.

pelicanconf.py

DIRECT_TEMPLATES = ['index']

Then index.html won't have the mathjax script added to it.

If I understand correctly, the code only renders and adds the script for articles or pages (either Markdown or rst). It would be great to support direct templates too.

Suggestion: let the Markdown mathjax extension handle Markdown output, and add the mathjax script for both .rst and .md files at the same time from within render_math.py. That way, the math extension for Markdown could even be presented as a standalone extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant