codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
385 stars 69 forks source link

For suggested edits and post history, make raw Mathjax available (not just the rendered output) #1116

Open cellio opened 1 year ago

cellio commented 1 year ago

https://meta.codidact.com/posts/287909

Suggested edits and edit history show the Markdown source -- except for Mathjax, which is rendered. This makes it hard to review edits or even to know if there's a small change lurking in the math. Can we find a way to make the raw Mathjax available?

A larger change that would solve this problem too would be for suggested edits and history to offer two views, raw source (all of it including Mathjax) and rendered output. This could be a toggle. This has the added benefit that when reviewing an edit that changed a bunch of formatting, you can see the before and after states. I don't know whether this broader solution is enough bigger/harder that we should consider it separately and meanwhile do something more targeted about Mathjax, or if it makes more sense to jump to that directly.

trichoplax commented 1 year ago

This initial change will leave no way of seeing the rendered MathJax. Assuming that this is acceptable as a temporary condition until the two-view approach is implemented, it seems useful to implement the initial change first, as it is a necessary component of implementing the two-view approach anyway. That is, the work done for this issue won't be temporary code to be discarded afterwards, it will be the first half of implementing the two-view approach.