2.2.1 • Published 4 years ago

push-md v2.2.1

Weekly downloads
26
License
MIT
Repository
github
Last release
4 years ago

push-md

This command allows to convert a markdown file to a html document, and push it through an API endpoint.

With the help of unified, remark and rehype, mardown syntax is extended, and some transformations are done.

Usage

push-md --help
push-md <myfile.md>
push-md <myfile.md> --publish
push-md <myfile.md> --html

Install

With npm installed, run

npm install -g push-md

Workflows

Global processing

  1. Source markdown file is loaded as VFile
  2. Mardown VFile is parsed by remark-parse to mast
  3. Frontmatter is extract and parsed as yaml
  4. mast is converted to hast by remark-rehype
  5. hast is serialized to HTML by rehype-stringify

List of enabled plugins

License

See LICENCE