English | 日本語
A Markdown document viewer that runs entirely in your browser. No server, installation, or tools such as Node.js needed.
- Version: 1.4.2
- Public page: https://particlepudding.github.io/mdfolio/
- Bugs, requests, and English corrections: Issues
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.
- 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)
- Documents are never sent anywhere.
- Scripts in documents are not run.
- Images on the internet are not loaded by default.
- 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.
Edit the line with id="mdv-config" in the HTML to change the title, language, theme, and more. See sample-docs/reference/settings.md.
dist/mdfolio.htmland the HTML files exported from Markdown can be redistributed as-is. The copyright and license notices are included in the HTML.
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.
MIT (LICENSE). Bundled libraries: THIRD-PARTY-NOTICES.txt.