mohio

Replace Quill with CodeMirror Markdown Editor

Date

2026-03-22

Context

Mohio’s first desktop editing milestone used Quill to present Markdown through a rich-text model. In practice that conversion layer caused input lag, dropped characters during editing, and forced Mohio to preserve some Markdown structures outside the editor because the rendered model could not represent them safely.

Change

Decision

Chose a direct Markdown editor with CodeMirror instead of continuing to patch a lossy rich-text abstraction. This keeps the saved Markdown as the single source of truth, makes all Markdown structures editable in place, and removes a fragile conversion path that was degrading typing reliability.

Impact

Mohio now edits document bodies directly as Markdown text. The editor surface should behave more predictably during typing, while still keeping the existing toolbar and autosave workflow for common formatting actions.