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

mathjax loading on per page basis causes issue for nodes containing math in reference only #40

Open
Tracked by #649
mmcky opened this issue Nov 29, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@mmcky
Copy link
Member

mmcky commented Nov 29, 2021

Describe the problem

It looks like mathjax doesn't get loaded by sphinx on page that contains nodes that reference math but don't explicitly include math on that page

For example:

.. solution:: exercise-1
    :label: solution-1

    This is a solution to exercise 1

references

.. exercise:: :math:`n!` factorial
    :label: exercise-1

    Exercise 1 about :math:`n!` factorial

But will result in:

Screen Shot 2021-11-29 at 12 23 25 pm

but if you add a math role anywhere on that page it will be correctly rendered.

Link to your repository or website

No response

Steps to reproduce

  1. Have a page with solution nodes only with references to exercise nodes that contain math in the titles

The version of Python you're using

No response

Your operating system

No response

Versions of your packages

No response

Additional context

I suspect this relates to loading mathjax on a per page basis

sphinx-doc/sphinx#9686

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant