Skip to content

Align math parsing with Sphinx? #38

Open
@agoose77

Description

@agoose77

Context

Sphinx applies some heuristics to determine what kind of outer environment to apply to math blocks:
Unfortunately for us, they don't do the same thing for mathjax as they do for LaTeX:
https://github.com/sphinx-doc/sphinx/blob/4b28bdd83bd30cc05986b8573b348a9853fb44fe/sphinx/util/math.py#L23-L55
https://github.com/sphinx-doc/sphinx/blob/4b28bdd83bd30cc05986b8573b348a9853fb44fe/sphinx/ext/mathjax.py#L36-L65

In any case, we should align ourselves with whatever Sphinx ultimately runs with (probably the LaTeX impl as it is newer).

Proposal

No response

Tasks and updates

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions