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

Support for math-blocks with Katex/MathJax #73

Closed
geoffreymcgill opened this issue Jul 13, 2021 Discussed in #72 · 2 comments
Closed

Support for math-blocks with Katex/MathJax #73

geoffreymcgill opened this issue Jul 13, 2021 Discussed in #72 · 2 comments
Assignees
Labels
Milestone

Comments

@geoffreymcgill
Copy link
Contributor

Discussed in #72

Originally posted by Treeniks July 13, 2021
Hi, I think Retype would be well suited to create websites about mathematical topics, but for that to be feasible it would need proper support for some kind of HTML Math rendering, of which I couldn't find any documentation or examples for (so I assume it's not supported as of yet). The two most popular in that area would be Katex and MathJax (although I personally much prefer Katex). Would it be possible to include support for these?

Being able to do something like $s_n = \sum_{k = 0}^{n} a_k$ inside the markdown source and get a nice Katex-rendered math formula in the website would be a great addition I believe.

@geoffreymcgill
Copy link
Contributor Author

Thanks for the feature request. We should be able to easily add MathJax. We've had an open issue for MathJax for a while, so I'm not sure why we haven't added this integration already. The work required for us to add MathJax integration will be almost identical to the recently added Mermaid diagraming library.

Katex might take a little more work. They have a nice pre-rendering feature that would be good for Retype to take advantage of, then the diagrams could be pre-rendered during the Retype build phase instead of repeatedly on the client.

We will investigate and try our best to get them both into the v1.9.0 release.

See also

@geoffreymcgill geoffreymcgill added this to the v1.10 milestone Sep 28, 2021
@geoffreymcgill
Copy link
Contributor Author

KaTex support has been added to Retype and will be included in the upcoming v1.10.0 release.

Both inline and block syntax will now be possible:

Screen Shot 2021-09-27 at 10 25 21 PM

Screen Shot 2021-09-27 at 10 22 40 PM

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

No branches or pull requests

1 participant