Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Rendering math equations? #274
Does markup currently support rendering math equations (for github-flavored-markdown)?
This SO question suggests the only way to currently do this is to use an external service like iTex2Img to render latex to equations:
Do you guys support rendering math in the markdown, similar to how math.stackexchange.com does it? If not, would you be willing to support this and/or accept a pull request implementing this? It would be awesome to use equations in the READMEs and such for things like algorithms and natural language processing / machine learning code.
Ok cool, good to know. Sucks that they caused headaches. Yeah not a fan of MathJax at all, mainly because it has noticeable delays in rendering if done purely on the client.
What were the problems you faced with latex in the past (security vulnerabilities and such)? Would be interesting to understand that, thinking about building a math parser.
I think this one is the best, mainly because it's fast:
But it only works on the client, unless you guys could use some server-side DOM to render. But that's probably too much to ask :)
Any thoughts on what the ideal would look like? Is it an image generator like iTex2Img or more like jqmath (or markdown), where it generates HTML?
Yep. latex just has so many feature that it's impossible for us to deploy it securely right now.
I haven't thought about it a lot, but we're not picky as long as it provides a good user experience and is easy to maintain.
referenced this issue
Apr 18, 2014
@bkeepers would you guys be down to integrate KaTeX from the Khan Academy? Looks pretty solid, and it has server-side rendering.
It could be just:
Or depending on how performant it was, you could add support for the StackOverflow-like