@fundamend/config-retext
v0.1.0
Published
_config-retext_ is a configuration preset for [retext] and its [plugins] used by [config-rehype-retext], [config-remark-retext], and the [fundamend.dev] ecosystem.
Downloads
13
Readme
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,
};