Skip to content
ParticlePuddingPublic

About

Markdown document viewer that runs entirely in your browser — no server or installation needed.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

English | 日本語

mdfolio

A Markdown document viewer that runs entirely in your browser. No server, installation, or tools such as Node.js needed.

How to use

Open mdfolio.html (in dist/) and choose a folder with "Open folder". To try it, open sample-docs.

Change the look: Place mdfolio.css in the same folder as mdfolio.html. See examples/mdfolio.css for an example.

Share: "Export as site" in the menu (⋯) packs your documents into a single HTML file. To include your CSS, use "Choose CSS" in the export dialog.

Features

  • Tables, syntax highlighting, math, diagrams (Mermaid), footnotes, alerts
  • File list, outline, full-text search
  • Light / dark theme, English / Japanese interface, printing
  • Automatic refresh when you save a file (Chrome / Edge)

Security

  • Documents are never sent anywhere.
  • Scripts in documents are not run.
  • Images on the internet are not loaded by default.

Main limitations

  • Supported encodings: UTF-8, UTF-16 (with BOM), and Shift_JIS.
  • Mermaid mindmaps and architecture diagrams are not available.
  • In Firefox / Safari, "Reopen last folder" and automatic refresh are not available.
  • Not tested on real smartphones.

Settings

Edit the line with id="mdv-config" in the HTML to change the title, language, theme, and more. See sample-docs/reference/settings.md.

Redistribution

  • dist/mdfolio.html and the HTML files exported from Markdown can be redistributed as-is. The copyright and license notices are included in the HTML.

For developers

Building and testing use Node.js 20 or later (users do not need it).

npm run build        # build dist/
npm install          # prepare for testing
npm test             # build → unit tests → browser tests

To automate exports, you can also export from the command line:

node tools/build-site.mjs <document folder> --out site.html --title "Handbook" --css mdfolio.css

The specification is in docs/SPEC.md, and the changelog is in CHANGELOG.md.

License

MIT (LICENSE). Bundled libraries: THIRD-PARTY-NOTICES.txt.

About

Markdown document viewer that runs entirely in your browser — no server or installation needed.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages