StackExchange / Stacks-Editor

Stack Overflow's Combination Rich Text / Markdown Editor
https://editor.stackoverflow.design
MIT License
356 stars 48 forks source link

MathJax support #112

Open b-kelly opened 2 years ago

b-kelly commented 2 years ago

Is your feature request related to a problem? Please describe.

Stacks-Editor needs support for viewing and editing mathjax.

Additional context

This is a required feature for various sites on the Stack Exchange network.

dancormier commented 2 years ago

https://github.com/benrbray/prosemirror-math 🤔

b-kelly commented 2 years ago

That looks like a pretty solid plugin, but unfortunately it uses the KaTeX library, while the SE Network uses MathJax. There may be some potential to switch over it KaTeX is a superior, drop-in replacement, but we'll probably be sticking with MathJax for the foreseeable future. That being said, this plugin is MIT licensed, so we could fork it if we find that it satisfies all of our other requirements.

b-kelly commented 2 years ago

Now that we have external plugin support, this may be something we instead implement with a plugin vs shipping it with the editor itself.

jwest86 commented 1 year ago

Any word on this gem? It comes up with our data science-y clients. Looking for an official stance so the business can stay apprised without Github access on one or more SOI posts:

giamir commented 1 year ago

Hi @jwest86, Ben is on holiday this week. I will make sure to bring your question to the attention of the team and we will come back to you next week. Thanks for your patience. 🙂

b-kelly commented 1 year ago

@jwest86 Thanks for reaching out. I'll start the process internally to prioritize this feature and allocate work. There's a very high chance that we'll be creating this functionality via the editor's "external plugin" system, rather than in the editor's codebase itself. This means that the work may fall on a product team. I'll start discussions with stakeholders to see what our resources are here and where this falls for them in regards to priority.

piszczu4 commented 1 year ago

@b-kelly any progress here? I would love to see MathJax support in StacksEditor