@alchemy-js/transmute-markdown

Transmute markdown with Alchemy

Usage no npm install needed!

<script type="module">
  import alchemyJsTransmuteMarkdown from 'https://cdn.skypack.dev/@alchemy-js/transmute-markdown';
</script>

README

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