One-Click Vault Export

approvedunreviewed

by raiderj77

Export a folder or your whole vault into one DOCX or one print-ready HTML file. Backlinks become working internal links, images are embedded, no Pandoc or LaTeX needed.

Updated todayMIT

One-Click Vault Export

Export a folder, or your whole vault, into one document. No Pandoc. No LaTeX. No command line, no external tools, nothing else to install. Everything runs inside Obsidian.

What it does

Pick a folder (or the whole vault) and a format:

  • DOCX: one Word document with a table of contents, every note in folder order, headings preserved, images embedded, tables and code blocks intact.
  • HTML: one self-contained file, styled for print. Open it in a browser, print, and save as PDF. That is the PDF path, stated plainly: this plugin does not pretend to conjure a PDF out of a binary that is not there. The HTML file needs no internet and no other files; images travel inside it as data URIs.

In both formats:

  • Backlinks keep working. A wikilink to another exported note becomes a real internal link: a bookmark hyperlink in DOCX, an in-page anchor in HTML. Links to headings ([[Note#Section]]) land on the heading.
  • You see the damage before it happens. The export dialog scans first and lists what will be skipped (non-Markdown files), which images are missing, and which links point nowhere. The finished export reports the same counts. Nothing fails silently.
  • Order is your folder structure, the way the vault already reads.

How to use it

  1. Click the download icon in the ribbon, run the command "Export folder or vault to DOCX / HTML", or right-click any folder and choose "Export this folder (DOCX / HTML)".
  2. Choose the scope and format. Read the preflight list.
  3. Click Export. The combined file lands in your vault root, named after the folder (or "Vault Export").

Honest limits (v1)

  • PDF comes from the HTML file via print-to-PDF. There is no bundled PDF binary engine; that is the trade that keeps the plugin dependency-free.
  • Formatting is approximated, not pixel-perfect. Common Markdown is handled: headings, emphasis, lists (including task lists and nesting), blockquotes, pipe tables, fenced code, images, links. Exotic syntax (callouts, transclusion of note sections, Dataview queries, canvas files, footnotes) is not rendered specially; raw HTML blocks pass through in HTML export and are reduced to their text in DOCX.
  • WebP and AVIF images are embedded in HTML but shown as a labeled placeholder in DOCX, whose format support for them is unreliable.
  • Links to notes outside the chosen folder are shown as plain text and counted in the preflight, never silently turned into dead links.

Development

npm test    # headless fixture-vault tests (node:test + esbuild)
npm run build   # tsc + esbuild bundle into release/

Layout: markdown.ts is a dependency-free Markdown parser producing a shared AST. core.ts selects, orders, and resolves (links, images, preflight report) with no Obsidian imports. docx-export.ts renders with the docx package (MIT). html-export.ts renders the print-ready HTML. main.ts is the Obsidian glue and the export dialog.

License: MIT.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.