md2rich

MDZ vs OKF 2026: Two New Markdown Formats Tested

Markdown spent twenty years as a render-me-now syntax. In November 2026 it is becoming something more: a package you can ship, and a corpus your AI agents can actually read. Two new specs - MDZip's .mdz and the Open Knowledge Format - define that future from opposite directions. Here is what each one actually is, what problem it solves, and where a Markdown-to-rich-text converter still fits.

Two announcements landed in the same week this November, and they sound almost identical if you only read the headlines. MDZip Studio shipped for macOS on November 10, 2026, bringing a desktop app for a file format called .mdz. Days earlier, the Open Knowledge Format (OKF) - a spec from two Google Cloud tech leads for organizing Markdown so AI agents can consume it - crossed its second public revision.

Both describe themselves with the same words: "portable," "Markdown-native," "for humans and AI agents." But they are not competitors. They operate on different layers of the stack, solve different failures, and - this is the part almost no coverage has stated clearly - they compose. An OKF knowledge bundle can be zipped into an .mdz and emailed. An .mdz can be extracted into an OKF bundle for an agent to index. The right question is not "which format wins" but "which failure mode are you trying to fix."

The problem both formats are attacking

Markdown has a well-known portability gap: the text travels everywhere, but the context does not. A Markdown file that references images/cover.png and depends on a companion AGENTS.md for instructions is not a self-contained artifact. Send just the .md file and the recipient gets text with broken references. Zip the whole folder and the recipient gets an unstructured archive they have to interpret manually. Neither is a good handoff to a colleague, a publisher, or an AI agent that needs to know which file is the entry point.

The 2026 twist is the agent. When the consumer of your Markdown is a language model doing knowledge work - summarizing your docs, answering questions against your playbook, drafting from your style guide - the failure modes multiply. Agents do not guess well. Give an agent a bare folder of 40 Markdown files with no index and no type metadata, and it will either hallucinate structure or burn tokens reading everything. OKF's documentation states the premise plainly: agents don't guess at structure, they read it. Both specs are, in different ways, attempts to make Markdown legible to machines without making it illegible to humans.

MDZip .mdz: Markdown as a shippable package

The .mdz format - spec version 1.2.1, status Final, dated October 25, 2026 - is deliberately unglamorous. The specification's own summary reads: "It's a ZIP file." An .mdz is a standard ZIP archive with a .mdz extension and the proposed MIME type application/vnd.mdzip. Files inside are stored or DEFLATE-compressed, never encrypted. Rename it to .zip and any archive manager on earth opens it.

What the extension adds is a thin layer of agreed-upon structure:

The ecosystem has moved fast. The spec lists conformant core libraries across five languages - Kotlin/Java (Android), Swift (iOS), pure Lua, and two others passing the same shared conformance tests - plus MDZip Studio 1.7.0 for Windows, macOS, and Linux (Homebrew included, with Finder double-click handling on Mac), a VS Code extension, an Obsidian plugin, and a Google Voice exporter. An .mdz file you create on a Linux desktop can be opened by an iOS library and validated by a Lua script, and every one of them interprets the same entry point.

The spec is also explicit about what .mdz is not. It is not a replacement for EPUB - the FAQ makes the contrast directly: EPUB is a ZIP-based container whose content is XHTML, built for publication and reading systems. .mdz is the same single-file packaging idea but Markdown-native, authoring-oriented, and far lighter in structure. If EPUB is for books, .mdz is for the document you are still editing.

Example: a single-document .mdz as the spec describes it:

document.mdz (ZIP archive)
├── index.md          # Recommended entry point
├── manifest.json     # Written by every MDZip tool
├── README.md         # Optional: human usage notes
├── AGENTS.md         # Optional: guidance for AI agents
├── images/
│   └── cover.png
└── styles/
    └── document.css

OKF: Markdown as a machine-legible knowledge corpus

The Open Knowledge Format approaches the same portability gap from the other side. Where .mdz packages a document for transit, OKF organizes a living corpus for use. Its own description is austere: a directory of Markdown files, YAML frontmatter, three rules. That's the entire format.

The three rules, from the spec:

  1. Every .md file (except the reserved index.md and log.md) needs parseable YAML frontmatter.
  2. Every frontmatter block needs a non-empty type field (concept, howto, reference, decision, metric), so agents route each file to the right handler without heuristics.
  3. The reserved files index.md and log.md follow a defined structure - the index lists what the bundle contains, the log tracks changes.

Everything else is deliberately unstandardized. The spec's authors - Sam McVeety and Amir Hormati, Tech Leads in Data Analytics Engineering at Google Cloud, who announced OKF on June 12, 2026 - made a bet that knowledge-management standards die by over-specification. OKF "nails down the structural conventions needed for a knowledge corpus to be self-describing, and stops there."

The current version, v0.2 (published July 24, 2026), adds the feature that makes OKF genuinely agent-ready: trust signals. Frontmatter fields named sources, generated, verified, status, and stale_after let an agent distinguish a curated, human-verified page from one that was machine-generated and never checked. In a world where agents increasingly write the docs they also read, provenance is not a nice-to-have - it is the difference between a corpus you can trust and one you cannot.

A minimal OKF bundle looks like this:

my-knowledge-bundle/
├── index.md
├── what-is-okf.md
└── validation-rules.md

---
type: concept
title: What is OKF
sources: https://example.com/spec
verified: 2026-11-01
status: current
---
# What is OKF

The Open Knowledge Format is a spec for representing
knowledge as markdown files.

The spec's FAQ connects OKF to a pattern that keeps reappearing under different names - what Andrej Karpathy called the "LLM Wiki" in a widely-circulated gist: LLMs don't get bored, don't forget to update a cross-reference, and can touch 15 files in one pass. The bookkeeping that causes humans to abandon personal wikis is exactly what LLMs are good at. OKF is the first attempt to standardize that pattern: an Obsidian-style vault, but with the structure an agent needs to navigate it deterministically.

MDZ vs OKF: the comparison that matters

Axis MDZip (.mdz) OKF
Unit A single file (ZIP archive) A directory of files
Primary job Package Markdown + assets for transit Organize a knowledge corpus for use
Structure source manifest.json + entry-point conventions YAML frontmatter + three rules
Agent story AGENTS.md explains the archive Typed frontmatter routes content; trust signals convey provenance
Git-native? Binary archive - diff-hostile Yes - diff, branch, review like code
Version Spec 1.2.1 (Final, 2026-10-25) v0.2 (2026-07-24, trust signals)
License Open, tool-agnostic spec MIT; based on the Google Cloud Markdown spec
Tooling Studio, VS Code, Obsidian, 5 core libraries (Android/iOS/Lua/...) Validators, CLI, agents, converters

Read the table as a routing guide, not a scorecard. Shipping a finished whitepaper to a client who uses different tools? That is .mdz. Standing up a knowledge base that your team's agents query daily? That is OKF. Both? Zip the OKF bundle into an .mdz - the spec explicitly supports multi-document project archives with index.md as a landing page, which is exactly what an OKF index.md already is.

Where Markdown-to-rich-text conversion still fits

Both specs stop at the same boundary: they get your Markdown organized and portable, but neither one pastes a formatted post into LinkedIn. That last mile - from structured Markdown to the rich-text clipboard format that LinkedIn, X Articles, Notion, Medium, and Substack accept on paste - is still a conversion problem, and it is still solved by a different kind of tool.

The workflow composes cleanly:

  1. Author in Markdown, with whatever structure your project needs - a plain file, an OKF-typed bundle, or an .mdz archive.
  2. Extract the document you want to publish. From .mdz: open the archive and copy the entry-point .md. From OKF: pick the concept or howto file whose frontmatter type matches your intent.
  3. Convert to rich text with a client-side converter like md2rich - paste the Markdown, copy the formatted output. No upload, no account, no server in the middle.
  4. Paste into the platform and publish. Bold, headings, lists, links, and code blocks survive intact.

Two concrete examples of what the Markdown looks like before conversion:

Example 1: a LinkedIn-ready section from a whitepaper draft. Notice the bold lead-ins, the link syntax, and the numbered structure - all of this converts to real formatting on paste, instead of literal asterisks.

## What changed in 2026

1. **Markdown became a package.**
   The .mdz format wraps a document,
   its images, and its metadata into
   one portable archive.
2. **Markdown became a corpus.**
   OKF adds typed frontmatter and trust
   signals so AI agents can navigate a
   knowledge bundle without guessing.
3. **The last mile stayed the same.**
   Publishing still means converting
   Markdown to the rich text each
   platform accepts on paste.

Read more: [the md2rich blog](/blog/)

Example 2: an X Articles pull-quote with a reference link. The blockquote marker and the inline link are exactly the constructs that get lost when you paste raw Markdown text into a rich-text field.

> OKF nails down the structural conventions
> needed for a knowledge corpus to be
> self-describing, and stops there.

The bet: standards that try to do too much
get adopted by nobody. Source:
[OKF Spec v0.2](https://okf.md/spec/)

In both cases, pasting the raw Markdown into LinkedIn or X Articles renders the literal characters - **bold**, > quote, [text](url). Converting first is the difference between a draft that looks like code and a post that looks like a post.

The privacy angle matters here too, and it is worth stating precisely because both new formats make it sharper. When your Markdown lives in an .mdz or an OKF bundle, it often contains things you do not want on a third-party server: internal playbooks, client names, unreleased pricing. A client-side converter keeps the whole pipeline on your device - the same property that makes .mdz "safe to open" and OKF "git-native" is the property you want in the conversion step too. No upload means no server to trust.

The verdict

MDZ and OKF are the two halves of a trend that will define Markdown's next decade: the format is growing up from a render-me-now syntax into infrastructure. .mdz answers "how do I ship a Markdown document without it falling apart in transit." OKF answers "how do I keep a Markdown corpus that an AI agent can actually use." Neither answer is complete without the last mile - converting your structured Markdown into the rich text that publishing platforms accept - and that last mile is where a privacy-first, client-side converter earns its place in the pipeline.

If you write in Markdown and publish anywhere in 2026, the stack writes itself: author in Markdown, structure with OKF or package with .mdz, convert with md2rich, paste everywhere.

FAQ

What is the difference between MDZ and OKF?

MDZ (.mdz) is a file format: a ZIP archive with a .mdz extension that packages one or more Markdown documents with their images, styles, and a manifest.json into a single portable file. OKF (Open Knowledge Format) is a directory convention: a folder of Markdown files with YAML frontmatter and three structural rules, designed so AI agents can navigate a knowledge bundle without bespoke tooling. In short, .mdz is a package you send; OKF is a folder you keep. They solve different problems and can be used together.

Is an .mdz file just a ZIP file?

Yes, by design. An .mdz is a standard ZIP archive with a .mdz extension and the proposed MIME type application/vnd.mdzip. You can rename it to .zip and open it in any archive manager. The .mdz extension signals intent: this is a Markdown document package, not a generic archive. MDZip adds a thin layer of agreed structure on top of ZIP: an entry-point convention (index.md by default), an optional manifest.json with metadata, and safety rules for tools that open it.

Who created OKF and where does it come from?

OKF was designed by Sam McVeety and Amir Hormati, Tech Leads in Data Analytics Engineering at Google Cloud, and announced via the Google Cloud Blog on June 12, 2026. It is published under an open license, with the canonical repository at GoogleCloudPlatform/open-knowledge-format. The current version is v0.2, published July 24, 2026, which adds trust signals (sources, generated, verified, status, stale_after) for provenance tracking. The format is vendor-neutral: no Google Cloud dependency is required to use it.

How do I convert Markdown to rich text for LinkedIn or X Articles?

Paste your Markdown into a client-side converter like md2rich, which turns it into clipboard-ready rich text entirely in your browser. Your draft never leaves your device. Then paste directly into LinkedIn, X Articles, Notion, Medium, or Substack, where the formatting - bold, headings, lists, links, code blocks - arrives intact. This works for .mdz contents you have extracted and for any OKF bundle file, since both store content as plain Markdown.

Do I need special software to open .mdz files?

No. Because .mdz is a ZIP archive, any archive manager can extract it, and the Markdown inside is plain UTF-8 text that any editor can read. Purpose-built tools - MDZip Studio (now on macOS as of November 10, 2026), VS Code extensions, Obsidian integration, and core libraries for Android, iOS, and Lua - add conveniences like entry-point discovery and manifest parsing, but they are optional, not required.

Structure it. Ship it. Publish it.

Try md2rich — the free, client-side Markdown-to-rich-text converter. Paste Markdown from any .mdz archive or OKF bundle, get clipboard-ready rich text for LinkedIn, X Articles, Notion, Medium, and Substack. No upload. No account. No server.

Try md2rich →