@sapper-dragon/remark

Decorate your Sapper project with Remark.

Usage no npm install needed!

<script type="module">
  import sapperDragonRemark from 'https://cdn.skypack.dev/@sapper-dragon/remark';
</script>

README

@sapper-dragon/remark

Decorate your Sapper project with Remark.

@sapper-dragon/remark utilizes Remark under the surface, which is a tool for converting markdown files to HTML.

Installation

npm install @sapper-dragon/remark --save-dev
# or
yarn add @sapper-dragon/remark --dev

Usage

This project requires the @sapper-dragon/trimmings lib, so look there first for instructions, then come back. 💫

@sapper-dragon/remark converts files from an remark folder and outputs them to importable *.svelte files.

Config

You can place a trimmings.config.js file in the root of your project to set configutations. These are the defaults:

export default {
    remark: {
        input: 'src/trimmings/remark', // path to watch *.md files
        filter: /\.md$/, // pattern for files to watch
        outputSvelte: 'src/routes/_markdown', // svelte output path
    },
    // ... additional settings from other @sapper-dragon packages...
}