@superfood/md2html
v1.0.6
Published
cli tool to convert markdown files to html
Downloads
9
Readme
A tiny, zero-configuration CLI that converts Markdown files into HTML.
Features
- Convert a Markdown file to HTML quickly from the terminal
- Optional
--fullflag to wrap the output in a minimal HTML document (doctype, head, body)
Install
Install globally with npm:
npm install -g @superfood/md2htmlRequires Node.js and npm.
Usage
Basic usage:
md2html <input.md> <output.html> [--full]Options:
<input.md>— Path to the source Markdown file to convert.<output.html>— Path to write the resulting HTML to.--full— When provided, output will be wrapped in a minimal HTML document (including<!DOCTYPE html>,<head>and<body>).
Examples
Convert README.md to a standalone HTML fragment (no wrapper):
md2html README.md README.htmlConvert and create a complete HTML document:
md2html README.md README-full.html --fullHow it works
The CLI reads the input file, parses the Markdown, and writes the output HTML. When --full is passed, it wraps the generated HTML into a minimal HTML document.
