push-md

2.2.1 • Public • Published

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

Dependencies (26)

Dev Dependencies (3)

Package Sidebar

Install

npm i push-md

Weekly Downloads

0

Version

2.2.1

License

MIT

Unpacked Size

13.7 kB

Total Files

9

Last publish

Collaborators

  • mab