Editor Command Integrity
Command Boundary
MdWrk editor controls dispatch package commands through the editor package surface. Toolbar buttons should not apply ad hoc DOM mutations or React-only text changes.
The core command boundary is split across:
@mdwrk/markdown-editor-corefor transforms@mdwrk/markdown-editor-reactfor command dispatch and focus handoff@mdwrk/markdown-edit-in-renderer-reactfor rendered-flow editing parity
Focus And Selection
Checkbox insertion creates only the checkbox marker, keeps focus in the editor, and places the cursor after one whitespace. Link and image commands are separate transforms, so applying a link must not rewrite existing image syntax and applying an image must not behave like an ordinary link.
Italic, underline, task-list, list, indentation, link, and image commands need separate tests when their behavior changes.