Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Convert a Markdown string into an SDM/1 structural fragment.- Operation ID:
markdownToFragment - API member path:
editor.doc.markdownToFragment(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns an SDMarkdownToFragmentResult with the converted fragment, lossy flag, and diagnostics.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
markdown | string | yes |
Example request
Output fields
| Field | Type | Required | Description |
|---|---|---|---|
diagnostics | object[] | yes | |
fragment | any | yes | |
lossy | boolean | yes |
Example response
Pre-apply throws
- None
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

