A WYSIWYG engine, maybe. (WIP)
prose NOTES.md
769 B
Markdown
at main

  • As the name of the project might imply, the API and design is largely inspired by ProseMirror. Ideally, an attempt would be made to maintain compatibility with ProseMirror (at least as far as serialization goes), but I don't consider it a hard goal.
  • My current thinking is that the nodes and components of the editor should only be exposed as resource handles. The main reason for this is to simplify the garbage collection of unused resources.
    • A user of prose must "retain" a resource handle to decalre it reachable to the garbage collector. This would normally be done on the "root" of a document, or any previous versions of the root for undo-redo support. A basic gc algorithm can then traverse the references of all retained handles.