Specify plugins options in mdPlugins array?
See original GitHub issueGiven a remark plugin, let’s say remark-emoji
: how do I specify his options using the mdPlugins
array.
Sorry if I’m missing something so obvious.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Configuring Plugin Usage with Plugin Options | Gatsby
Plugins loaded into a Gatsby site can have options passed in to customize how a plugin operates. This guide refers to creating plugins,...
Read more >Project Configuration - Docz
Specify an array of plugins that you want to use. mdPlugins. Type: Array; Default: []. Array of remark plugins to manipulate the MDXAST....
Read more >PluginArray - Web APIs | MDN
Returns the Plugin with the specified name. Refreshes all plugins on the current page, optionally reloading documents.
Read more >@mathieudutour/gatsby-mdx NPM | npm.io
To use .md or other file extensions, you can define an array of file extensions ... the option to set default layouts in...
Read more >Blogging with Gatsby & MDX - React Training
Previously the plugin for gatsby-mdx was just a string in the array. That's fine unless you want to add options like we do...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is now supported in
0.15.0-1
thanks to @revolunet.Thanks for reporting @madiodio ❤️.
No worries @johno, it’s kind of a edge case but in the meantime I’ve got to see the source and discover that this line mdx/packages/mdx/index.js#L59 actually allowed me to specify the plugin options like this
This works but it would be awesome if there was a more elegant way to achieve that.