Skip to content

Any chance of supporting MathML ? #551

Closed

Description

@AaronNGray

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.

Activity

  1. mpacer commented on Sep 28, 2015

    @mpacer

    👍

  2. MatteoRagni commented on Dec 28, 2015

    @MatteoRagni

    👍

  3. dginev commented on Jun 6, 2016

    @dginev

    👍

  4. Announcement commented on Jun 25, 2016

    @Announcement

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

  5. AaronNGray commented on Jun 25, 2016

    @AaronNGray
    Author

    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.

  6. dginev commented on Jun 25, 2016

    @dginev

    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.

  7. FlorianFranzen commented on Aug 1, 2016

    @FlorianFranzen

    +1

  8. kivikakk commented on Mar 23, 2017

    @kivikakk
    Contributor

    👋 Closing this issue per #897 (comment).

  9. CommanderTvis commented on Mar 31, 2021

    @CommanderTvis

    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>
    
  10. Satlinker commented on Feb 13, 2022

    @Satlinker

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions