Skip to content
sapper-dragonPublic

About

Decorate your Sapper project with Remark.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Decorate your Sapper project with Remark.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages