by smokel · 6mo ago · 0 comments
One instance for the base editor, and one instance for the currently active cell. The other cells are rendered to HTML through a different code path (no CodeMirror involved there).
For rendering mathematical formulas it uses MathJax.
A global context-based keyboard handler such as the one in VSCode allows for Emacs key bindings.
it works well but I'm not much of a programmer and probably ended up with a crazy over engineered architecture lol
I was surprised that there weren't any existing libraries for this (there is one now but it was created after I started work on my plugin: https://github.com/ckant/codemirror-markdown-tables)