---
title: "History bundles (.mdh)"
nav: "History bundles"
description: "The .mdh file: a zip of timestamped markdown files, so you can send a document together with its version history. No manifest, nothing proprietary."
sources: ["0085", "0031", "0154", "0137-a-version-renders-the-images-it-was-saved-with", "spec:wymark-history-1"]
section: "Reference"
---

# History bundles (`.mdh`)

> **Experimental.** The format is specified, but a later version may change it in ways that break bundles made today. Of course, we will strive to stay backwards compatible with earlier versions.

A `.mdh` file is a document together with its saved versions. It is a zip archive of markdown files, one per version, and nothing else: no manifest, no metadata file, nothing specific to Wymark.

```
plan.20260725T103000Z.md
plan.20260725T112215Z.md
plan.20260726T090000Z.draft-for-legal.md
```

| Part of the file name | Meaning |
| --- | --- |
| Timestamp | Orders the versions. The newest is the current document. |
| Label after the timestamp | A version name someone typed. Optional. |

Rename `plan.mdh` to `plan.zip` to open it without Wymark. A bundle can be built with `zip`.

## Which format to send

| Recipient | Send |
| --- | --- |
| Uses Wymark, and the history matters | A `.mdh` |
| Anyone else | A `.docx` with tracked changes (early access: open it in Word first). See [Exporting](/docs/guide/exporting). |
| Both sides use git | Use git |

## Export

**File > Export...**, format **Wymark History (.mdh)**, or **File > Export as Wymark History (.mdh)...**. Then choose what to send:

| Choice | Sends |
| --- | --- |
| **Entire history** | Every version. Saves the current state as a version first. |
| **Current changes only** | Your pending changes. Shown only when there are some. |
| **Choose versions...** | The versions you pick. |

With **Entire history**, the review on their side is the step since your previous version, not your pending changes.

## Opening one

Wymark asks where to save the document, then:

| | Becomes |
| --- | --- |
| The newest version | A markdown file on disk, byte for byte as sent. |
| The version before it | The review baseline. The step between the two is shown as changes to accept or reject. |
| The other versions | Versions, each with its original timestamp. |

- An opened bundle is always a new document. It is never merged into one you have.
- If the last two versions are identical, there is no review.

## What a bundle does not carry

- Who made a change. A change has no author, in the bundle or anywhere else in Wymark.
- Which changes were accepted or rejected.
- Anything between two versions.

Comments carry the name Wymark filled in for the writer, or whatever an AI agent wrote. It is plain text in the markdown and is not verified.

## Pictures

**Include images** is on by default and shows the file count and total size. Past 128 MB the export refuses and asks you to slim the bundle.

| Rule | |
| --- | --- |
| **What travels** | Only the pictures the exported versions reference. Web pictures stay links. |
| **Where** | In the archive, at the relative paths the document uses. |
| **A picture elsewhere on your machine** | Its path is rewritten, in the bundle only, to point into the document's assets folder. The original path never leaves your machine, also when the file is missing. |
| **On import** | Written beside the document. Only referenced entries are written; anything else in the archive is skipped and reported. |
| **A picture already there** | Same bytes: left alone. Different bytes: the whole import is refused before anything is written. |

Limits:

- A bundle carries one copy per path, from the disk as it is today. An older version whose picture was later overwritten travels with today's picture; one whose picture was deleted travels with a missing reference.
- A picture no exported version references does not travel.

Why the format is this plain: [design note](/docs/how-it-works/history-bundles).
