ellatrix / wp-front-end-editor

Front-end Editor for WordPress
https://wordpress.org/plugins/wp-front-end-editor/
340 stars 87 forks source link

Feature request: Better MathJax support #255

Open bpdeconi opened 9 years ago

bpdeconi commented 9 years ago

I don't imagine this will be a top priority, but it would be spectacular if at some point better support for MathJax is added. Posting this issue to hopefully get it on someone's radar.

In case you're not familiar: Much of the mathematical and scientific world uses LaTeX for document typesetting, in order to cleanly display equations, Greek characters, etc. MathJax (https://www.mathjax.org/) is a set of scripts that detect LaTeX syntax and convert it into mathematical expressions. The HTML behind the display is a mess of spans and divs, but to the end user, it's clean and accessible for screen readers (really important in an academic setting).

When I use the front-end editor to add mathematics to a post, it works well enough:

screenshot 2015-08-09 18 09 37

After clicking Publish I have to refresh the page (would be awesome if I didn't have to refresh, but this is fine), and then the mathematics is displayed as intended:

screenshot 2015-08-09 18 10 03

But when I go back to edit my post, rather than getting my LaTeX syntax back, I get the MathJax generated output and no way of editing the LaTeX that I used to create it.

It would be amazing if editing the post content could revert the mathematics back to the original LaTeX.

As I said above, this probably won't be a top priority. But it would be greatly appreciated if someone takes a look at it some day.

ellatrix commented 8 years ago

I'd love this too, but this needs to be a separate plugin (both front and back end). What plugin do you use now? Maybe I'll make one someday. Keeping this open as a reminder.