Skip to content

notion to markdown

Move your engineering docs from Notion into Git.

Export your pages from Notion as Markdown and run one command. You get files with working links, ready for a pull request. Nothing goes live until you push.

Click a file

$ meldoc import --from notion Export-7c1e.zip --out docs 5 documents, 1 asset, 2 warnings

the export from Notion

  • Engineering 1f3a9c2e8b7d4e6fa0c1d2e3f4a5b6c7/
  • Architecture 2b8e4d1c9a6f4b3e8d7c6b5a4f3e2d1c/
  • Runbooks 3c9f5e2d0b7a4c8e9f1a2b3c4d5e6f70/

what the import wrote

  • docs/
  • assets/
  • engineering/
  • runbooks/
Engineering 1f3a9c2e8b7d4e6fa0c1d2e3f4a5b6c7/Architecture 2b8e4d1c9a6f4b3e8d7c6b5a4f3e2d1c.md
# Architecture

![Request flow](Architecture%202b8e4d1c9a6f4b3e8d7c6b5a4f3e2d1c/request-flow.png)

Every request passes the gateway first. When a deploy goes wrong, follow [Deploy rollback](Runbooks%203c9f5e2d0b7a4c8e9f1a2b3c4d5e6f70/Deploy%20rollback%204da06f3e1c8b4d9fa0b1c2d3e4f5a6b7.md).
docs/engineering/architecture.meldoc.md
---
alias: architecture
title: Architecture
parentAlias: engineering
---

![Request flow](../assets/request-flow.png)

Every request passes the gateway first. When a deploy goes wrong, follow [[deploy-rollback|Deploy rollback]].

The real output of meldoc import on a small export. The import runs on your computer and needs no account.

1 what the import fixes

What the import fixes in a Notion export.

Every file name ends in a 32-character page ID
The ID is gone. The name comes from the title: architecture.meldoc.md.
Links between pages are encoded file paths
They become [[architecture|Architecture]] and keep working when a file moves.
Images sit in a folder next to each page
They go to assets/ and upload when you push.
A database is a CSV file
It becomes a Markdown table. Views, filters and rollups do not carry over, and the report names each database.
A page with subpages is a file and a folder
It becomes a folder with index.meldoc.md, the layout meldoc pull uses.
Cyrillic titles
The alias is transliterated: “Обзор архитектуры” becomes obzor-arhitektury.

2 the report

A report lists what did not carry over.

Every run writes MIGRATION_REPORT.md next to the files. Each line names the file it came from, so you know which pages to read before you push.

Nothing reaches Meldoc until you run meldoc push. Until then it is a folder of files and a git diff.

docs/MIGRATION_REPORT.md
# Migration report

5 documents, 1 asset.

## csv-newline (1)

- `Engineering 1f3a9c2e8b7d4e6fa0c1d2e3f4a5b6c7/Services 5eb1704f2d9c4eafb1c2d3e4f5a6b7c8.csv` — a newline inside a cell became a space in column(s): On call

## notion-database (1)

- `Engineering 1f3a9c2e8b7d4e6fa0c1d2e3f4a5b6c7/Services 5eb1704f2d9c4eafb1c2d3e4f5a6b7c8.csv` — views, filters and rollups have no equivalent; imported as a plain table

3 after the move

What changes once the docs are in Git.

The GitHub sync works both ways
Files in the repository and documents in Meldoc stay in step. An edit made in the browser reaches the repository as a pull request.
People who never open a terminal still edit
Meldoc has a web editor. A product manager edits the page there, and the change goes to the repository the same way.
A pull request that makes a sentence outdated gets a finding
With the documentation review on, Meldoc quotes the sentence and the code that changed it. How drift detection works
Agents read the docs over MCP
Claude Code and Cursor get the page together with any open finding about it. What the agent gets

other ways out of Notion

How the usual approaches compare.

Approach Links between pagesWhat you check before it goes liveWhere it falls short
Copying page by page Rebuilt by handEach pageSlow past a few dozen pages.
The export and a cleanup script Whatever the script handlesThe script’s outputSomeone keeps the script working, and nothing lists what it dropped.
Syncing Notion into Git Stay in NotionNothing: Notion stays the sourceThe repository holds a copy. A pull request cannot change the page.
meldoc import Meldoc Converted to [[alias]] linksA report and a git diffDatabase views, filters and rollups do not carry over.

what stays

What to leave in Notion.

Roadmaps, meeting notes and project boards work better in Notion. Move the docs that describe the code: architecture, runbooks, API notes, onboarding. You can export one page with its subpages instead of the whole workspace.

questions

Frequently asked.

How do I export my docs from Notion?
For one section, open its page in Notion, choose ••• and Export, pick Markdown & CSV and turn on Include subpages. For everything, open Settings, then General, and choose Export all workspace content: Notion emails a download link that works for 7 days. A large export can arrive as a .zip with more .zip files inside. Unzip each of them into the same folder and run the import on that folder.
Does it use the Notion API?
No. It reads the export, so you do not have to share an integration with every page.
Do I need a Meldoc account to run the import?
No. The import writes files on your computer. You need an account to push them.
What happens to Notion databases?
Each one becomes a Markdown table. Views, filters and rollups do not carry over, and the report lists every database.
Can I import Markdown from somewhere else?
Yes. meldoc import --from markdown reads any folder of Markdown, an Obsidian vault included.
Can I import from Confluence?
No. There is no Confluence import.
What does it cost?
The CLI and the import are free. The Free plan holds 200 documents and 100 MB of assets for 1 member. A team moving its docs needs Pro, €79 a month per workspace with unlimited members.

Bring your engineering docs next to the code.

meldoc import --from notion Export.zip --out docs