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

Add support for rendering mathematical notation #14

Closed
begleynk opened this issue Nov 9, 2021 · 2 comments · Fixed by #29
Closed

Add support for rendering mathematical notation #14

begleynk opened this issue Nov 9, 2021 · 2 comments · Fixed by #29
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@begleynk
Copy link
Member

begleynk commented Nov 9, 2021

Like mdbook and others, we should add support for mathematical notation.

MathJax seems like it could be a good option. It could be integrated similarly to how we do with MermaidJS - bundle the minified JS in the binary and serve it.

Discussion found here: https://www.reddit.com/r/rust/comments/qpeblj/comment/hjuxq5d/

@begleynk begleynk self-assigned this Nov 9, 2021
@begleynk begleynk added the enhancement New feature or request label Nov 9, 2021
@begleynk
Copy link
Member Author

One issue with MathJax seems to be that it requires a polyfill library to also be loaded for browser compatibility. This is required even for IE 11 support. Details here.

Perhaps Katex could be a more lightweight option? It's around ~250kb minified and is self contained.

@begleynk begleynk added this to the v0.4 milestone Nov 24, 2021
@pdunne
Copy link

pdunne commented Dec 3, 2021

good point, I forgot that my quick test was with Katex (it almost displayed correctly)

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

Successfully merging a pull request may close this issue.

2 participants