Skip to content

Fix issue where plot fails to render if unsupported MathJax version is present on page - #7951

Merged
emilykl merged 5 commits into
v4.0from
fix-mathjax-issue
Aug 13, 2026
Merged

Fix issue where plot fails to render if unsupported MathJax version is present on page#7951
emilykl merged 5 commits into
v4.0from
fix-mathjax-issue

Conversation

@emilykl

Copy link
Copy Markdown
Contributor

Link to Issue

Closes#7926

Description

Fixes an issue where the presence of an unsupported MathJax version on the page would cause the entire plot not to render if it contained a tex string ($...$).

This was due to the code path which detected an unsupported MathJax version not calling _callback() directly the way we did in other failure cases. This PR adds a call to _callback() in that case, and adds regression tests for the issue.

@emilykl
emilykl changed the base branch from master to v4.0August 9, 2026 16:31
@emilyklemilykl added this to the v4.0.0 milestone Aug 9, 2026
@emilyklemilykl changed the title Fix issue where plot failed to render if unsupported MathJax version was present on pageFix issue where plot failed to render if unsupported MathJax version is present on pageAug 10, 2026
@camdecostercamdecoster changed the title Fix issue where plot failed to render if unsupported MathJax version is present on pageFix issue where plot fails to render if unsupported MathJax version is present on pageAug 10, 2026

@camdecostercamdecoster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I left one suggestion.

Comment threaddraftlogs/7951_fix.md Outdated
Comment threadsrc/lib/svg_text_utils.js Outdated
emilykland others added 2 commits August 13, 2026 14:45
Co-authored-by: Cameron DeCoster <cameron.decoster@gmail.com>
@emilykl
emilykl merged commit fcf6e99 into v4.0Aug 13, 2026
244 of 247 checks passed
@emilykl
emilykl deleted the fix-mathjax-issue branch August 13, 2026 19:17
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: 4.0 RC: Unsupported MathJax version causes entire plot not to render

2 participants

@emilykl@camdecoster