Export Neorg Notes to Markdown: A Portability Check
Use Neorg's export engine to render .norg notes to Markdown, then verify fidelity before relying on the output.
02 Nov 2026, 16:02 UTC

You have a directory full of `.norg` files and a colleague, a publishing pipeline, or a backup system that only understands Markdown. Neorg is an effective local note-taking environment for Neovim, but its file format is not universally readable. The practical question is not whether Neorg can export; it is whether the exported Markdown is faithful enough to share or archive, and how to verify that before you reorganize or delete anything.
The short answer is that Neorg’s core export module renders the tree-sitter parse tree into Markdown, Org, or plain text without re-parsing the document for each target. You can use this for portability, but treat the first export as a draft: inspect the output, confirm headings and links survived, and check `:help core.export` after every update because module names and commands change between releases.
How export is structured
Neorg parses a `.norg` file into a syntax tree using tree-sitter. Export modules consume that tree and serialize it to another format. Because parsing and rendering are separate, adding Markdown does not require re-parsing the source document. Exporters are Lua modules registered under `core.export`. The exact module path, setup keys, and command names differ across Neorg releases, so the configuration below is a pattern to adapt, not a guarantee.
Verify your environment before exporting
Run these inside Neovim:
:help neorg
:help core.export
If either help topic is missing, your installed version does not document the export module under that name. Also confirm that Neovim was compiled with tree-sitter support and that the Neorg tree-sitter parser is installed. Without the parser, export can fail or fall back to plain text.
Worked example: configure and run
Add or review the export module in your Neorg setup. The shape is typically:
require('neorg').setup({
modules = {
core = {
export = {
-- Release-specific options go here.
-- Inspect your installed plugin for the current schema.
},
},
},
})
List the installed exporter modules to see what your version provides. The path depends on your plugin manager, but it looks similar to:
ls ~/.local/share/nvim/site/pack/*/start/neorg/lua/neorg/modules/core/export/
Open a sample `.norg` file, then run the export command for your release. A common pattern is:
:Neorg export markdown
This may open a new buffer or write a file. If it writes to disk, target a directory you control, such as `/tmp/neorg-export/`, so you do not overwrite source notes by accident.
Expected checks after export:
- Headings appear as Markdown headings (`#`, `##`, etc.)
- Lists and task markers are preserved
- Links remain as text or convert to Markdown links
Risks:
- Writing to the same directory can overwrite files if names collide.
- Custom objects, tags, and embedded blocks may not survive conversion.
Limitations and how to check the result
Round-trip fidelity is not guaranteed. Export to Markdown is usually one-way: importing Markdown back into Neorg may not restore tags, custom objects, or embedded blocks. Treat `.norg` as the source of truth and Markdown as a derived artifact.
Practical verification:
- Export a sample file to a new buffer first, not directly to disk.
- Compare heading levels, list indentation, and link text between source and output.
- Open the Markdown in a separate editor to confirm it renders.
- If you script batch exports, write to a timestamped output directory and diff a random sample before adopting the process.
Closing
Use Neorg export when you need to share notes with tools that do not understand `.norg`, but do not assume the output is byte-for-byte equivalent. Verify on a sample, keep the original `.norg` files, and re-check `:help core.export` after every Neorg update because the module surface changes frequently.
If you export directly to disk and overwrite files, restore from your backup or version control; there is no built-in undo for exported files.