Skip to content

A powerful CLI tool for converting Markdown to HTML with syntax highlighting and Mermaid chart support.

Notifications You must be signed in to change notification settings

tkura37/md2html

Repository files navigation

md2html

A powerful CLI tool for converting Markdown to beautiful HTML with syntax highlighting and Mermaid chart support

Features

✅Syntax Highlighting - Beautiful code blocks with highlight.js
✅Mermaid Charts - Interactive diagrams and flowcharts
✅Batch Processing - Convert entire directories at once
✅ZIP Compression - Archive outputs for easy distribution

Installation

npm install -g md2html

Usage

# Convert single markdown file into HTML file
npx md2html example.md
# Convert with custom output
npx md2html docs/example.md shared/
# Convert all markdown files in directory
npx md2html docs/
# Convert all markdown files in directory and compress to ZIP
npx md2html docs/ --zip

Options

Option Alias Description
--zip Compress output files into ZIP archive
--help -h Show help information
--version -v Display version number

License

MIT

About

A powerful CLI tool for converting Markdown to HTML with syntax highlighting and Mermaid chart support.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published