-
Notifications
You must be signed in to change notification settings - Fork 47
Andrew/mathjax #393
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
Andrew/mathjax #393
Conversation
src/py/kaleido/vendor/index.html
Outdated
<!-- | ||
THIS FILE IS AN EXAMPLE, IT IS GENERATED AUTOMATICALLY AT RUNTIME | ||
TO ENSURE FULLY UPDATED RESOURCES | ||
--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't make sense to me, what is the function of this file? Should it be checked into git at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Legacy code that I've been using throughout this process and as documentation. It's definitely on its way out, I can axe it.
src/py/kaleido/vendor/index.html
Outdated
</script> | ||
|
||
<!-- Only your one tweak; preset handles TeX+AMS+SVG --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
<script src="\S[^\n]*/kaleido_scopes\.js"></script> | ||
</head> | ||
<body style="{margin: 0; padding: 0;}"><img id="kaleido-image"></img></body> | ||
<body style="{margin: 0; padding: 0;}"><img id="kaleido\-image" /></body> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the backslash in the id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not super happy with how convoluted these tests are and I'm thinking about doing them line by line.
In certain instances, '-' is a reserved character in regex. In this particular instance, it doesn't need to be, but can be, escaped.
There's a run on testing today, this whole strategy might change in another PR.
@ayjayt Just to make sure I understand -- the root cause of the two linked issues is the fact that the Mathjax script was being loaded after the Plotly script? |
a) we bring mathjax into line with plotly.py which solves one issues. It seems to me mathjax should be loaded if I'm going to tell plotly that it is loaded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This updates mathjax and script ordering to be more in line with expectations