2.2.1 • Published 4 years ago
push-md v2.2.1
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
- Source markdown file is loaded as VFile
- Mardown VFile is parsed by remark-parse to mast
- Frontmatter is extract and parsed as yaml
- mast is converted to hast by remark-rehype
- hast is serialized to HTML by rehype-stringify
List of enabled plugins
- remark-frontmatter
- remark-extract-frontmatter
- remark-footnotes
- remark-abbr
- remark-code-import
- rehype-highlight
- rehype-autolink-headings
- rehype-accessible-emojis
License
See LICENCE