Socket
Book a DemoInstallSign in
Socket

snowpack-plugin-markdown-html

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snowpack-plugin-markdown-html

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

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

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

NameTypeDescription
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.
parseOptionsObject(optional) See https://github.com/rsms/markdown-wasm#api

FAQs

Package last updated on 12 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts