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 Start here. [Architecture](Engineering%201f3a9c2e8b7d4e6fa0c1d2e3f4a5b6c7/Architecture%202b8e4d1c9a6f4b3e8d7c6b5a4f3e2d1c.md) explains how the services talk, [Runbooks](Engineering%201f3a9c2e8b7d4e6fa0c1d2e3f4a5b6c7/Runbooks%203c9f5e2d0b7a4c8e9f1a2b3c4d5e6f70.md) say what to do at 3am. The list of services is in [Services](Engineering%201f3a9c2e8b7d4e6fa0c1d2e3f4a5b6c7/Services%205eb1704f2d9c4eafb1c2d3e4f5a6b7c8.csv).
# Architecture  Every request passes the gateway first. When a deploy goes wrong, follow [Deploy rollback](Runbooks%203c9f5e2d0b7a4c8e9f1a2b3c4d5e6f70/Deploy%20rollback%204da06f3e1c8b4d9fa0b1c2d3e4f5a6b7.md).
An image, in a folder named after its page.
# Runbooks - [Deploy rollback](Runbooks%203c9f5e2d0b7a4c8e9f1a2b3c4d5e6f70/Deploy%20rollback%204da06f3e1c8b4d9fa0b1c2d3e4f5a6b7.md)
# Deploy rollback
Owner: Platform team
1. Find the last green build.
2. Run `deploy --rollback <sha>`.
Name,Owner,Tier,On call
api,Platform,1,"Mon-Fri
weekends: Ana"
billing,Payments,1,Payments rota
search,Discovery,2,Discovery rota
Not in the export: the import writes it.
--- alias: engineering title: Engineering --- Start here. [[architecture|Architecture]] explains how the services talk, [[runbooks|Runbooks]] say what to do at 3am. The list of services is in [[services|Services]].
--- alias: architecture title: Architecture parentAlias: engineering ---  Every request passes the gateway first. When a deploy goes wrong, follow [[deploy-rollback|Deploy rollback]].
The same image, moved to assets/. It uploads when you run meldoc push.
--- alias: runbooks title: Runbooks parentAlias: engineering --- - [[deploy-rollback|Deploy rollback]]
---
alias: deploy-rollback
title: Deploy rollback
parentAlias: runbooks
---
Owner: Platform team
1. Find the last green build.
2. Run `deploy --rollback <sha>`.
--- alias: services title: Services parentAlias: engineering --- | Name | Owner | Tier | On call | |---|---|---|---| | api | Platform | 1 | Mon-Fri weekends: Ana | | billing | Payments | 1 | Payments rota | | search | Discovery | 2 | Discovery rota |
# 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
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 layoutmeldoc pulluses. - 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.
# 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 pages | What you check before it goes live | Where it falls short |
|---|---|---|---|
| Copying page by page | Rebuilt by hand | Each page | Slow past a few dozen pages. |
| The export and a cleanup script | Whatever the script handles | The script’s output | Someone keeps the script working, and nothing lists what it dropped. |
| Syncing Notion into Git | Stay in Notion | Nothing: Notion stays the source | The repository holds a copy. A pull request cannot change the page. |
| meldoc import Meldoc | Converted to [[alias]] links | A report and a git diff | Database 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?
Does it use the Notion API?
Do I need a Meldoc account to run the import?
What happens to Notion databases?
Can I import Markdown from somewhere else?
meldoc import --from markdown reads any folder of Markdown, an Obsidian vault included.Can I import from Confluence?
What does it cost?
Bring your engineering docs next to the code.
meldoc import --from notion Export.zip --out docs