@sapper-dragon/remark

0.1.0 • Public • Published

@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...
}

Readme

Keywords

Package Sidebar

Install

npm i @sapper-dragon/remark

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

4.06 kB

Total Files

4

Last publish

Collaborators

  • arxpoetica