Write (cantext)
Primary APIs
| API | Behavior |
|---|---|
createCanvasController(options) | Creates a text-only controller with shared document and history methods. |
canvas.dispatch(command) | Runs a typed cantext canvas command and records it in shared history. |
createEditor(options) | Creates a document editor kernel with command, transaction, and subscription APIs. |
editor.dispatch(command) | Runs a user-facing editor command. |
editor.execute(transaction) | Applies a precise document transaction. |
documentStructureToMarkdown(document) | Serializes document structure to Markdown. |
documentStructureToHtml(document) | Serializes document structure to HTML. |