We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096da59 commit 4b82227Copy full SHA for 4b82227
src/theme/MDXContent/index.tsx
@@ -2,13 +2,17 @@ import React from 'react';
2
import MDXContent from '@theme-original/MDXContent';
3
import type MDXContentType from '@theme/MDXContent';
4
import type {WrapperProps} from '@docusaurus/types';
5
+import GlossaryInjector from '../../../src/components/GlossaryInjector';
6
7
type Props = WrapperProps<typeof MDXContentType>;
8
-export default function MDXContentWrapper(props: Props): JSX.Element {
9
+export default function MDXContentWrapper(props: Props, { children }): JSX.Element {
10
return (
11
<>
12
<MDXContent {...props} />
13
+ <GlossaryInjector>
14
+ {children}
15
+ </GlossaryInjector>
16
</>
17
);
18
}
0 commit comments