# Source ownership
`document` implements bounded UTF-16 source edits without a rich-document round
trip. `editor` owns accepted history and host selection queries. `preview` parses
CommonMark/GFM into semantic widgets and never writes Markdown back.
The parser is opt-in. Source keyboard commands share the render contract with
the browser, Wry and Apace hosts. A keydown carries the source selection captured
at that boundary; toolbar actions query the current selection asynchronously.
Physical edits arriving before the command's frame is presented are rebased at
the captured selection so fast typing after Enter/formatting is retained.
Do not move host objects, application upload/authentication policy or downstream
widget dependencies into these modules. See `docs/markdown-editing.md`.