Skip to content
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

Any chance of supporting MathML ? #551

Closed
AaronNGray opened this issue Sep 25, 2015 · 11 comments
Closed

Any chance of supporting MathML ? #551

AaronNGray opened this issue Sep 25, 2015 · 11 comments

Comments

@AaronNGray
Copy link

Is there any chance of supporting MathML in markup. I read #274 but would still really love TeX for inference rules in the semantics of my language definition. But MathML would be a second choice as it has all they symbols for type theory. It could probably be implemented reasonably simply without creeping featurism or security issues.

@mpacer
Copy link

mpacer commented Sep 28, 2015

👍

2 similar comments
@MatteoRagni
Copy link

👍

@dginev
Copy link

dginev commented Jun 6, 2016

👍

@Announcement
Copy link

Doubt it, math ml support was dropped from html, and that would require a third party Javascript library so...

@AaronNGray
Copy link
Author

AaronNGray commented Jun 25, 2016

Oh no that's a bit regressive to say the least. Maths is the mainstay of all the physical sciences and computer science. What the hell are they doing dropping it ?

I am working on a deconstruction of TeX as a side project so maybe I might yield something that can be used within markdown as an alternative that might will hopefully able to be deemed secure to be used as an online service.

I am also looking at whether I can either add TeX as a plugin or do a conversion of the Knuth's code to JavaScript or maybe Ruby. The only thing that seems to be in the way of doing that is the bitfields used in the Pascal web code. These get converted over to C seamlessly. I am thinking I might be able to replace the bitfield references with assessors that do the same job.

Once I get the livetex code deconstructed into separate projects I will open it up in a separate GitHub organization.

@dginev
Copy link

dginev commented Jun 25, 2016

There is recent work to reintroduce MathML to Blink (see here). By the time this issues goes anywhere it may be back to available on most browsers.

But using a third-party javascript library isn't unheard of either, as an intermediate step. MathJax and Katex both seem to be doing a fine job of that.

@AaronNGray A bit off-topic, but you may want to take a look at this emscripten port of pdftex to javascript, which could be what you're thinking of: https://github.com/manuels/texlive.js It's already working.

@FlorianFranzen
Copy link

+1

@kivikakk
Copy link
Contributor

👋 Closing this issue per #897 (comment).

@ghost
Copy link

ghost commented Apr 20, 2017

See also this comment at #897.

@CommanderTvis
Copy link

CommanderTvis commented Mar 31, 2021

That's clear that it's impossible to directly support LaTeX equations; however, I can't understand what's wrong with MathML—it is supported by modern browsers, so GFM developers only should allow some HTML tags like <math>.

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mrow><msup><mrow><mi>e</mi></mrow><mrow><msqrt><mi>x</mi></msqrt></mrow></msup><mo>-</mo><mfrac><mrow><mfrac><mrow><msup><mrow><mo>sin</mo></mrow><mrow><mo>-</mo><mn>1</mn></mrow></msup><mspace width="0.167em"></mspace><mfenced open="(" close=")" separators=""><mn>2</mn><mspace width="0.167em"></mspace><mi>x</mi></mfenced></mrow><mrow><mn>2</mn><mo>&times;</mo><msup><mrow><mn>10</mn></mrow><mrow><mn>10</mn></mrow></msup><mo>+</mo><msup><mrow><mi>x</mi></mrow><mrow><mn>3</mn></mrow></msup></mrow></mfrac></mrow><mrow><mo>-</mo><mn>12</mn></mrow></mfrac></mrow>
</math>

@Satlinker
Copy link

Cannot believe that it's impossible to show formulas in github Wiki???? I need not edit the equations in the editor, just copy mathml code and the browser shows it. Where is the problem???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants