Hacker News new | ask | show | jobs
by smokel 34 days ago
Not the one you're replying to, but "my" system is an Angular application that makes heavy use of CodeMirror.

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.

1 comments

I've vibe coded a codemirror table editor (as a plugin for joplin) using a nested codemirror instance for the cell editor, in my case using joplin's built in command to render markup for the inactive cells: https://github.com/bwat47/joplin-rich-tables

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)