Skip to content

Commit 9aae0f2

Browse files
author
Sean Perkins
authored
fix: compatability with docusaurus 2.2.0 (#223)
1 parent 35617c5 commit 9aae0f2

File tree

1 file changed

+2
-0
lines changed
  • packages/docusaurus-plugin-openapi/src

1 file changed

+2
-0
lines changed

packages/docusaurus-plugin-openapi/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ export default function pluginOpenAPI(
274274
rehypePlugins,
275275
beforeDefaultRehypePlugins,
276276
beforeDefaultRemarkPlugins,
277+
// Docusaurus 2.2.0 has a regression that requires this option to be set.
278+
markdownConfig: {},
277279
metadataPath: (mdxPath: string) => {
278280
if (mdxPath.startsWith(dataDir)) {
279281
// The MDX file already lives in `dataDir`: this is an OpenAPI MDX

0 commit comments

Comments
 (0)