An extension to directly WYSIWYG-style edit equations, with rendering through KaTeX, and key bindings.
The high-bar ideal is to approach the usability of TeXmacs. So eg. we will use more braces than necessary for rendering, to keep track of the structure of formulas. The key bindings will be strictly compatible with Navi Parens, and compatible with TeXmacs where that is also most ergonomic.
Two extensions that look relevant:
Okay, the action plan!
graph TD;
A-->B;
A-->C;
And the name: vsc-markmacs
My initial idea of just using the preview hasn’t panned out because the burden on editing is just too great: in particular, the edits land in the undo ring, breaking the undo command. On the bright side, I fixed issues with multicharacter delimiters, added skipping delimiters for navigation to previous / next character, added an alternative to previous / next line that always stops at a delimiter, and provided a nice set of LaTeX-specific delimiters and separators. This is lots of features that merit a v1.3 release.
The plan is to work on a full-fledged WYSIWYG editor for Markdown+KaTeX+Mermaid, along the original plan of a poor man’s TeXmacs replacement. Once I have some spare time; as Navi Parens v2. That is, I will fork a Markdown preview extension to implement the cursor marking and nearest scope highlighting; while the actual editing still happening in a regular Markdown editing window. Implementing a custom editor would make it (maybe) too hard to ensure all editing features work.