-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add support for mathml output, closes #110, #118 #117
base: master
Are you sure you want to change the base?
Conversation
The second commit is optional; I mentioned some details in #110. It would also be easy to tweak this PR to instead use plurimath over latexmath. That is, we have 3 options:
|
One downside of docutil's latex2mathml is that "supports only a subset of LaTeX math syntax". For example, it doesn't support After some experimentation, my impression is that |
Enable by setting mathematical-format = mathml, mathematical-inline = true
MathML is due to be released and enabled by default in Chrome 109, so nudging again on this. |
More info:
Note, MathML already works on Firefox and Opera. |
Hello, I tried using your patch, but could not get it to work with AsciiDoctor PDF. Ended up with inline HTML in PDF.
Could you please provide a example? |
I've not tested PDF. I'm just using Example source here: https://github.com/infinity0/mkwww/blob/master/example/src/test%20with%20spaces.adoc (raw) |
This PR is about MathML support. How do you expect MathML support to work inside a PDF, @mateibarbu19 ? |
Hey, thanks for your helpful example! I was thinking that there may be a way of rendering it with an external call (e.g., to Chromium to then print it), and then including those graphics inside the PDF should be no problem. I see now that my assumption was foolish, and I understand now how to use your fork for an HTML output. Thank you! |
Enable by setting mathematical-format = mathml, mathematical-inline = true