-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: compatability with docusaurus 2.2.0 #223
fix: compatability with docusaurus 2.2.0 #223
Conversation
✅ Deploy Preview for docusaurus-openapi ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Thanks for the quick review 🙂 note for future context, we could probably update the But this fix unblocks the 2.2.0 support for now until we gather more use cases for that change. |
Thanks so much! |
@@ -274,6 +274,8 @@ export default function pluginOpenAPI( | |||
rehypePlugins, | |||
beforeDefaultRehypePlugins, | |||
beforeDefaultRemarkPlugins, | |||
// Docusaurus 2.2.0 has a regression that requires this option to be set. | |||
markdownConfig: {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather pass markdownConfig: context.siteConfig.markdown
: this is what all other plugins do, and third-party plugin authors using our mdx loader should rather do the same to apply global markdown config for all md docs. There will be more Markdown site options in the future
Adds new property option that was introduced in v2.2.0 of
@docusaurus/mdx-loader
.Resolves #222
Related Docusaurus issue: facebook/docusaurus#8298