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
No math support at all? #42
Comments
I just added support for mathjax: https://github.com/marianoguerra/rst2html5/blob/master/examples/mathjax.rst check if it's ok for you I don't know a lot about mathjax (or maths :P) so let me know how it works for you |
Thank You. I got
I use the latest version:
Does it work for You? |
It seems that non-MathJax math support was removed in 2b667c4 when a new Writer was introduced. It looks like MathML and other options were supported before that. I'd also prefer to have more choices than just MathJax, and, more important, I'd like to use RST markup for declaring math (i.e. the In my opinion, the ideal solution would be to have an option for selecting the math output variant (MathML, MathJax, etc.) and the @marianoguerra: Is that something that would be OK for you? If so I would try to implement that and create a PR. |
hi, thanks for the comment, I don't use math myself so you seem to know more than I do, please create a PR and I will merge it, I guess it's better than the current state of things :) |
I'll prepare PR, although it may take me time since things are pretty busy here at the moment. |
I'm working on this. Most of it is done, but some small issues still need to be fixed. Basically I took the code from the original docutils, refactored it and adapted it to our architecture. @marianoguerra: Once everything works I would remove the current MathJax-postprocessor, is that OK with you? |
@torfsen if the replacement works, I'm ok with it. |
This should be ready to go. Documentation (well ,the README) and tests have been updated. I've added new configuration options ( I've also decided to keep the MathJax postprocessor to make sure that we stay backwards-compatible. However I removed its detailed documentation and marked it as deprecated instead. |
rst2html
supports math:divs get some math processing depending on the command line options of the
rst2html
. Howeverrst2html5
just leaves plain divs.The text was updated successfully, but these errors were encountered: