2.0.0 • Published 4 years ago

@fox-land/remark-insert v2.0.0

Weekly downloads
8
License
-
Repository
-
Last release
4 years ago

remark-insert

Generic utility that inserts a heading and the contents after it

Usage

import remark from 'remark'
import remarkInsert from '@fox-land/remark-insert'

remark()
	// pass in either
	.use(remarkInsert, {
		headingText: 'Information',
		headingDepth: 2,
		insertionText: `Here is some information about x`,
	})
	.process({ path, contents })
	.then((vfile) => {
		console.info(vfile)
	})
	.catch((err: unknown) => {
		console.error(err)
	})

License

Licensed under Apache-2.0

2.0.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago