# NOTION_MAX_CHILDREN

**Kind:** Constant

**Source:** [`atloria-monorepo/apps/api/src/technical-docs/md-to-notion-blocks.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/technical-docs/md-to-notion-blocks.ts#L11)

Dependency-free markdown → Notion block objects (the `children` payload for the Notion API).
Parallels `mdToStorageHtml` (Confluence): covers exactly what our generated pages emit —
headings, paragraphs with inline formatting, fenced code, bulleted lists; tables degrade to
paragraphs. No `@notionhq/client` (ESM-only → would break the CJS server build, like `marked`).

Two hard Notion limits are baked in here so the export never 400s:
 - a single rich-text run's `content` must be ≤ 2000 chars → long runs are split.
 - a request may carry ≤ 100 child blocks → chunking is done by the caller (see NOTION_MAX_CHILDREN).
