Export a doc as Markdown
Steps
- Open the doc and select the three-dot menu at the top right.
- Go to Export, thenExport to Markdown.
- You get a .md file, or a zip with the Markdown and its images if the doc has any.
Watch out for
It's one doc at a time. There's no Markdown or HTML export for a whole workspace.
- Images come along in the zip, but other files attached to the doc are left out.
- Links to other docs point back into AFFiNE, not at other files you've exported.
- Databases come out as plain tables, with no views.
- Export to Snapshot and the desktop app's Full Backup only open in AFFiNE again.
- Comes with it 4
- Note text
- Formatting
- Databases and views
- To-dos and reminders
- Left behind 8
- Attachments and images
- Links between notes
- Tags
- Properties and metadata
- Created and updated dates
- Version history
- Sharing and permissions
- Canvases and whiteboards
- Not sure 2
- Embeds
- Comments
Sources
- Evidence github.com/toeverything/AFFiNE/blob/v0.27.4/packages/frontend/core/src/components/page-list/operation-menu-items/export.tsx
- Evidence github.com/toeverything/AFFiNE/blob/v0.27.4/packages/frontend/core/src/components/hooks/affine/use-export-page.ts
- Evidence github.com/toeverything/AFFiNE/blob/v0.27.4/blocksuite/affine/blocks/attachment/src/adapters/markdown.ts
- Evidence github.com/toeverything/AFFiNE/blob/v0.27.4/blocksuite/affine/blocks/database/src/adapters/markdown.ts
- Evidence github.com/toeverything/AFFiNE/blob/v0.27.4/blocksuite/affine/blocks/list/src/adapters/markdown.ts
- Evidence github.com/toeverything/AFFiNE/blob/v0.27.4/blocksuite/affine/shared/src/adapters/middlewares/doc-link.ts
- Evidence github.com/toeverything/AFFiNE/blob/v0.27.4/packages/frontend/core/src/desktop/dialogs/setting/workspace-setting/storage/export.tsx