You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that once activating the theme, the extension I have done through wrapping MDXComponents is not picked up anymore.
That is, the example in the original documentation of docusaurus that shows how to extend the component scope via MDXComponent.js is not working correctly anymore.
import React from 'react';
// Import the original mapper
import MDXComponents from '@theme-original/MDXComponents';
import Highlight from '@site/src/components/Highlight';
export default {
// Re-use the default mapping
...MDXComponents,
// Map the "highlight" tag to our <Highlight /> component!
// `Highlight` will receive all props that were passed to `highlight` in MDX
highlight: Highlight,
};
The text was updated successfully, but these errors were encountered:
I have noticed that once activating the theme, the extension I have done through wrapping MDXComponents is not picked up anymore.
That is, the example in the original documentation of docusaurus that shows how to extend the component scope via
MDXComponent.js
is not working correctly anymore.The text was updated successfully, but these errors were encountered: