A Markdown-to-HTML converter that transforms plain Markdown into a HTML documentation page. This tool is ideal for technical documentation, wikis, engineering blogs, API docs, and project pages.
npm install md2html-navA Markdown-to-HTML converter that transforms plain Markdown into a HTML documentation page. This tool is ideal for technical documentation, wikis, engineering blogs, API docs, and project pages.
- β¨ Install (NPM)
- π Usage (CLI)
- π‘ Why This Tool?
- π Description
- π§© Template Features Explained
- Sidebar Table of Contents
- Minimap Navigation
- Syntax Highlighting
- Mermaid Diagram Support
- Scroll Progress Bar
- ScrollSpy
- Copy Code Buttons
- Theme Switcher
- Floating Back-to-Top Button
- π¦ Installation
- βΆοΈ Usage Examples
- π Reporting Issues
- π€ Contributing
- π License
- π¬ Contact
---
``bash`
npm install -g md2html-nav
This installs the CLI globally so you can run the converter from anywhere.
---
Convert a Markdown file into a polished HTML document:
`bash`
md2html-nav input.md output.html
Example:
`bash`
md2html-nav README.md docs.html
This generates a fullyβstyled HTML page using the builtβin template, sidebar TOC, minimap, syntax highlighting, Mermaid diagrams, theme switching, scroll progress, and FAB-to-top.
---
| Mode | Command | Output | Offline Support | JS/CSS Handling | Best For |
|------|---------|--------|-----------------|-----------------|----------|
| Default | md2html-nav in.md out.html | Single HTML | β Partial | References external scripts & CDN CSS | Hosting with own asset pipeline |md2html-nav in.md out.html --standalone
| Standalone | | Single HTML | β
Full | JS + CSS are inlined | Email, sharing, GitHub wiki, S3 |md2html-nav in.md out.html --copy-scripts
| Copy Assets | | HTML + assets/ folder | β
Full | JS + CSS copied locally | Offline sites, GitHub Pages, docs folders |
Examples:
`bashSingle self-contained HTML (recommended for sharing)
md2html-nav guide.md guide.html --standalone
---
π₯ Mode Details (Impact & Use Cases)
$3
`
md2html-nav input.md output.html
`
- Injects Markdown into template
- Leaves external