aboutsummaryrefslogtreecommitdiffstats
path: root/dev-docs/src/theme/MDXComponents.js
diff options
context:
space:
mode:
Diffstat (limited to 'dev-docs/src/theme/MDXComponents.js')
-rw-r--r--dev-docs/src/theme/MDXComponents.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-docs/src/theme/MDXComponents.js b/dev-docs/src/theme/MDXComponents.js
new file mode 100644
index 0000000..3523430
--- /dev/null
+++ b/dev-docs/src/theme/MDXComponents.js
@@ -0,0 +1,11 @@
+// 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,
+};