> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yamuno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Export Pages

> How to export single pages, page trees, and entire spaces to Markdown

# Export Pages

Markdown Exporter for Confluence supports three export scopes: single page, page tree, and full space. All multi-page exports are bundled into a ZIP archive that mirrors your Confluence page hierarchy.

## Single Page Export

Export one Confluence page as a standalone `.md` file.

**Steps:**

1. Navigate to the page you want to export
2. Click the **•••** (More actions) menu → **Export to Markdown**
3. Confirm the scope is **Single Page**
4. Optionally configure front matter and filename pattern
5. Click **Preview** to inspect the output
6. Click **Export** and download your `.md` file

**What's included:**

* Full page content converted to Markdown
* All text formatting (bold, italic, headings, code, tables, lists)
* Images referenced from Confluence (as absolute Confluence URLs)
* Optionally: YAML front matter, custom filename

**Best for:** Quick one-off exports, sharing a specific page, creating backups.

***

## Page Tree Export

Export a parent page and any selection of its child pages as a structured ZIP.

**Steps:**

1. Navigate to the parent page
2. Click **•••** → **Export to Markdown**
3. The full page tree loads automatically
4. Check/uncheck pages to include or exclude
5. Use **in-tree search** to find specific pages by title
6. Configure options (front matter, Obsidian mode, filename pattern, attachments)
7. Click **Export** and download the ZIP

**ZIP structure:**

```
export/
├── Parent Page.md
├── Child Section/
│   ├── index.md
│   └── Nested Page.md
└── Another Section.md
```

**Best for:** Exporting a documentation section, creating portable docs sets, backing up related pages.

***

## Space Export

Export an entire Confluence space with all its pages and attachments.

**Steps:**

1. Open the exporter from the **global Apps menu** (Confluence top navigation → Apps → Markdown Exporter)
2. Select the target space from the space picker
3. All pages in the space load in the tree
4. Select all or filter down to what you need
5. Configure export options
6. Click **Export** — large spaces may take a moment to process
7. Download the complete ZIP archive

**Best for:** Full space backups, platform migrations, docs-as-code pipelines, offline documentation.

***

## Output Format

### File structure

The ZIP mirrors your Confluence hierarchy as nested folders. Parent pages generate an `index.md` at the folder root, children become sibling files:

```
space-export/
├── Home.md
├── Engineering/
│   ├── index.md          ← the "Engineering" parent page
│   ├── Architecture.md
│   └── API Reference.md
└── Product/
    ├── index.md
    └── Roadmap.md
```

### Attachments

When **Include attachments** is enabled, each page's attachments are placed in a subfolder next to the page file, and all image/file references in the Markdown are updated to relative paths:

```
Engineering/
├── Architecture.md
└── Architecture/
    ├── diagram.png
    └── spec.pdf
```

In `Architecture.md`:

```markdown theme={null}
![System diagram](./Architecture/diagram.png)
[Download spec](./Architecture/spec.pdf)
```

### Markdown formatting

The exporter preserves all standard Confluence content:

* Headings, bold, italic, strikethrough, inline code
* Ordered/unordered/task lists and nested lists
* Tables with alignment
* Fenced code blocks with language labels
* Blockquotes
* Info/warning/note panels converted to blockquotes
* Images and file links
