Closed noelforte closed 4 months ago
Currently, plugins are used like this:
{ plugins: [ pluginA({ ...pluginAOptions }), pluginB({ ...pluginBOptions }), // ... ] }
And filters are used like this:
{ filters: { filterA(content) { /* ...filter code... */ }, filterB(content) { /* ...filter code... */ }, // ... } }
Wondering if it makes more sense to align the API's for plugins and filters by either making them both arrays or objects, so the implementations are similar.
Currently, plugins are used like this:
And filters are used like this:
Wondering if it makes more sense to align the API's for plugins and filters by either making them both arrays or objects, so the implementations are similar.