snowpack-plugin-markdown-html

0.0.3 • Public • Published

snowpack-plugin-markdown-html

npm

Use markdown-wasm to build .md files to HTML.

Usage

From a terminal, run the following:

npm install --save-dev snowpack-plugin-markdown-html

Then add this plugin to your Snowpack config:

// snowpack.config.json
{
  "plugins": [
    "snowpack-plugin-markdown-html"
  ]
}

Plugin Options

Name Type Description
render "default" | "nunjucks" | ({html: string, frontmatter: Object, markdown: string, loadOptions: PluginLoadOptions, markChanged: () => void}) => string (optional) Custom render function. markChanged can be used to bust Snowpack's cache of the .md file, e.g. if a layout file has changed.
parseOptions Object (optional) See https://github.com/rsms/markdown-wasm#api

Readme

Keywords

none

Package Sidebar

Install

npm i snowpack-plugin-markdown-html

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

3.94 kB

Total Files

5

Last publish

Collaborators

  • mxmul