1.0.0 • Published 5 years ago

@alchemy-js/transmute-markdown v1.0.0

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

Transmute Markdown

Transmutes markdown for the Alchemy static site generator.

  • Transmutes file content from markdown to HTML
  • Transmutes file extension from .md to .html
  • Options object accepts all valid marked options

Installation

npm i @alchemy/transmute-markdown

API

This is a wrapper around the marked package, accepting all valid options as an object.

const Alchemy = require('@alchemy-js/alchemy');
const markdown = require('@alchemy-js/transmute-markdown');

Alchemy({
  /* file paths */
}).clean()
  .transmute(markdown({
    /* accepts valid marked options as an object */
  })
  .build()

License

MIT