0.2.0 • Published 5 months ago

@cobapen/mdhtml v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

mdhtml

mdhtml is a cli tool to convert markdown to html.

mdhtml input.md --template template.html

When a folder is specified as a source, the tool converts all .md files into .html.

Features

  • Frontend of @cobapen/markdown
  • Swappable template file
  • Simple static site generator
  • Watch mode

Install

npm install -g @cobapen/mdhtml

node.js > 20.11, 21.2 or later required

Usage

mdhtml <input> --template _template.html --output <output>
  • --output <path>: Specify output file/folder (Default: outupt)
  • --template <file>: Specify output folder (Default: _template.html)
  • --clean: Clean output folder before conversion
  • --quiet: Enable quiet mode and suppress conversion messages
  • --watch: Enable watch mode and monitor filesystem changes
  • --math <path>: Generate mathjax css file (Default: math.css)
    • +:full to disable adaptiveCSS
0.2.0

5 months ago

0.1.0

6 months ago