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 MathJax and other math renderers #4

Open
benrbray opened this issue Sep 1, 2020 · 4 comments
Open

Support MathJax and other math renderers #4

benrbray opened this issue Sep 1, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@benrbray
Copy link
Owner

benrbray commented Sep 1, 2020

KaTeX is the preferred math rendering engine, but prosemirror-math should provide a render() callback in case users would like to use something else.

@benrbray benrbray added the enhancement New feature or request label Sep 1, 2020
@stefnotch
Copy link

Would this also include WYSIWYG math editors such as mathlive? (Mathlive is a pretty decent maths editor and the lead developer is also working on other mathematical things for the web) Another potentially quite interesting WYSIWYG would be guppy, which builds on top of KaTeX.

Or is this purely limited to the rendering aspect and editing will remain text based?

@benrbray
Copy link
Owner Author

benrbray commented May 1, 2021

MathLive is a great project! I haven't heard of guppy before, it looks interesting as well.

At the moment, the main use case for prosemirror-math is when you want to render math (via KaTeX, MathJax, etc) based on raw text entered by the user. Much of the code for prosemirror-math is about handling strange edge cases related to the fact that there's a nested ProseMirror editor inside the NodeView. Since MathLive and guppy have their own editing interface, I think wrapping them in a NodeView would present an entirely different set of challenges than the use case prosemirror-math is designed for. In some ways it's probably easier, since those packages handle both input AND rendering all at once.

So at the moment I don't really think that it makes sense to set MathLive / guppy integration as a goal for prosemirror-math.

You might be interested in work by Demos on integrating MathQuill into ProseMirror.

@stefnotch
Copy link

Alright, that makes sense. I already expected that to be a bit out of scope for this project, but asking never hurts :)
Thanks for pointing me the work that Desmos is doing! I'll check that out

@slevey087
Copy link

Just wanted to +1 the MathJax request :)

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

No branches or pull requests

3 participants