-
Notifications
You must be signed in to change notification settings - Fork 81
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
How should we deal with math options/rendering/html? #4
Comments
the guiding principle that I think we've taken so far is to be as close to the Jupyter Notebook experience as possible. That way users aren't surprised when they do stuff w/ jupyter book vs. jupyter notebook. Does that help guide the decision-making here? |
Thanks @choldgraf - I think that makes sense. I have gone with default I will get the basic functionality in through #5, and then we can always come back and fix/add things. I am looking through |
I don't have strong opinions on katex, not super familiar with it. I'm also really curious to see if MathJax 3 significantly improves on some of the downsides of MathJax (though it'll be a little while before we switch I assume, though I'll note that |
Just a quick follow up on this in #10 so far I have added a simple mathjax renderer to the demo, it is picking up standard math open/close which is set when rendering the html. Right now I have gone with |
I have now added amsmath through #25. Still outstanding here are the permalink html pieces. |
I have gone into the I will leave this open as a packaging issue, I think we need to define how we will export and support various versions of mystjs that either include or do not include these as dependencies. For example, the client-side code will likely not want to ship katex, but that is perfectly acceptable on the server side implementation. |
We have gone the route of using the AST and then rendering in some other format (e.g. latex, jats, katex). I think there should be more information about rendering if you are just using the base parsers and html, but that is sufficiently tracked in #45. |
I think there are a couple things to think about:
markdown-it-texmath
has a soft dependency onkatex
which I am pretty sure we do not want to bundle$
,\(
\[
, etc.)$..$
, but overrides possible in optionsHTML Wrappers:
I think in JupyterBook/sphinx currently this is done:
Without a label:
With labels:
And inline:
The text was updated successfully, but these errors were encountered: