Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
138 lines (110 loc) · 6 KB

File metadata and controls

138 lines (110 loc) · 6 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

retext

Plugins

retext is a tool that transforms natural language with plugins. See the monorepo readme for info on what the retext ecosystem is. This page lists existing plugins.

Contents

List of plugins

See awesome-retext for the most awesome projects in the ecosystem. More plugins can be found on GitHub tagged with the retext-plugin topic.

The list of plugins:

List of utilities

See nlcst for a list of utilities that work with the syntax tree. See unist for other utilities which work with nlcst and other syntax trees too. Finally, see vfile for a list of utilities working with virtual files.

Using plugins

To use a plugin programmatically, call the use() function.

Creating plugins

To create a plugin, first read up on the concept of plugins. Then, read the guide on “Creating a plugin with unified”. Finally, take one of existing plugins, which looks similar to what you’re about to make, and work from there. If you get stuck, discussions is a good place to get help.

You should pick a name prefixed by 'retext-' (such as retext-emoji). Do not use the retext- prefix if the thing you create doesn’t work with retext().use(): it isn’t a “plugin” and will confuse users. If it works with nlcst, use 'nlcst-', if it works with any unist tree, use unist-util-, and if it works with virtual files, use vfile-.

Use default exports to expose plugins from your packages, add retext-plugin keywords in package.json, add a retext-plugin topic to your repo on GitHub, and create a pull request to add the plugin here on this page!

Morty Proxy This is a proxified and sanitized view of the page, visit original site.