Skip to content

Script not added on direct templates #35

@leotrs

Description

@leotrs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions