0.1.0 • Published 3 years ago

@fundamend/config-retext v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

config-retext

config-retext is a configuration preset for retext and its plugins used by config-rehype-retext, config-remark-retext, and the fundamend.dev ecosystem.

Installation

Use your favorite Node.js package manager, for example npm, like so:

npm install --save-dev @fundamend/config-retext

... or yarn, like so:

yarn add --dev @fundamend/config-retext

Usage

In your .rehyperc.js or .remarkrc.js, import remark-retext or rehype-retext and config-retext and add it to the plugins array, like so:

const retext = require('rehype-retext');
const retextPreset = require('@fundamend/config-retext');

const plugins = [[retext, retextPreset]];
const settings = {};

module.exports = {
	plugins: plugins,
	settings: settings,
};

License

MIT