Closed Kimi-Gao closed 4 years ago
cc @elviswolcott
It looks like the root of the problem is that the plugin and options tuple was being flattened by concat https://github.com/facebook/docusaurus/blob/08616997dad3fcc567026f8beed8c8b986371f73/packages/docusaurus-preset-classic/src/index.js#L20-L25 resulting in something like
{ remarkPlugins: [plugin, config] }
instead of
{ remarkPlugins: [ [plugin, config] ] }
@elviswolcott could you please fix this?
@lex111 PR is up 😄
🐛 Bug Report
custom configuration for remark-admonitions does not work.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
adding these lines in md file:
Expected behavior
custom admonition can render correctly
Actual Behavior
Your Environment