Decorate your Sapper project with Remark.
@sapper-dragon/remark
utilizes Remark under the surface, which is a tool for converting markdown files to HTML.
npm install @sapper-dragon/remark --save-dev
# or
yarn add @sapper-dragon/remark --dev
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.
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...
}