markdown-to-html

Node.js CI Coverage Status

Markdown renderer aiming at providing :

Features

Usage

Install

npm install -g @mborne/markdown-to-html
# check version
markdown-to-html --version
# show help
markdown-to-html --help
# markdown-to-html [serve|convert|check] --help

Generate static website

markdown-to-html convert samples/01-default-layout /tmp/output

Serve markdown file

# with the default layout
markdown-to-html serve samples/01-default-layout
# with a custom layout
markdown-to-html serve samples/02-remarkjs --layout remarkjs

Check markdown files

To check links between markdown files :

markdown-to-html check samples/01-default-layout
# to include HTTP test for remote URLs
markdown-to-html check samples/01-default-layout --check-external-links

Credits

It is inspired from :

Samples

Example Source Layout
Classic example samples/01-default-layout/index.md layout/default/page.html
RemarkJS slideshow samples/02-remarkjs/index.md layout/remarkjs/page.html
GitHub pages generated mixing both mborne/cours-patron-conception see build.js

License

MIT

Alternatives

See jamstack.org - Site Generators :

Docs