Kind: Constant
Source: atloria-monorepo/apps/api/src/technical-docs/md-to-notion-blocks.ts
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
contentmust be ≤ 2000 chars → long runs are split. - a request may carry ≤ 100 child blocks → chunking is done by the caller (see NOTION_MAX_CHILDREN).
Was this page helpful?