A block editor over sections of markdown, written for a course on topology. The model is pure and the browser is kept out of it. The Operations page of the documentation is the contract: one card per edit, each read from the same fixture the tests run.
The site is published at https://epuremethod.github.io/editor/.
@epure/editorholds the types, the pure model, the notation and the storage port. It depends on nothing.@tilia/editorrenders the model with React over contentEditable, the block views keyed by id through tilia.docsbuilds the site with@epure/minidoc.
pnpm install
pnpm test
pnpm devpnpm dev builds the packages and serves the documentation, with the demo,
at http://127.0.0.1:62924/index.html. It rebuilds when a page or a fixture
changes.
docs/content/pages/EDITOR.md settles the vocabulary, the model, the input
layer and the order of work. The fixtures under packages/editor/src/design/
are the editor's contract, and every scenario writes its document in the
notation described on the Operations page.
Built with tilia, ReScript, React, KaTeX, Vitest and @epure/vitest, which runs the scenarios the way the épure method writes them.