edemaine / cocreate

Cocreate Shared Whiteboard/Drawing
MIT License
209 stars 27 forks source link

Render LaTeX source when errors #202

Closed edemaine closed 2 years ago

edemaine commented 2 years ago

When there's an error in LaTeX code, ideally we'd show both the source code (as that's still pretty readable) and the error rendering stacked vertically (increasing line height? actually we don't adjust line height for math at all currently). Or perhaps the error should be smaller and inlaid. Perhaps the LaTeX code should be in monospace font like ` or something unique (color?).

Alternatively, Yevhenii suggests showing the last successful render if the user has been typing recently, but I feel like that could be confusing and inconsistent with the current immediacy of Cocreate (and hard to implement).

Without something like this, it's hard to watch people live-edit LaTeX math.