Skip to main content

Summary

Extract the document content as a Markdown string.
  • Operation ID: getMarkdown
  • API member path: editor.doc.getMarkdown(...)
  • Mutates document: no
  • Idempotency: idempotent
  • Supports tracked mode: no
  • Supports dry run: no
  • Deterministic target resolution: yes

Expected result

Returns the full document content as a Markdown-formatted string.

Input fields

FieldTypeRequiredDescription
inStoryLocatornoStoryLocator

Example request

{
  "in": {
    "kind": "story",
    "storyType": "body"
  }
}

Output fields

No fields.

Example response

"example"

Pre-apply throws

  • STORY_NOT_FOUND
  • STORY_MISMATCH
  • STORY_NOT_SUPPORTED
  • CROSS_STORY_PLAN
  • MATERIALIZATION_FAILED

Non-applied failure codes

  • None

Raw schemas

{
  "additionalProperties": false,
  "properties": {
    "in": {
      "$ref": "#/$defs/StoryLocator"
    }
  },
  "type": "object"
}
{
  "type": "string"
}