summaryrefslogtreecommitdiffstats
path: root/dev-docs/src/theme/MDXComponents.js
diff options
context:
space:
mode:
authorkj_sh6042026-03-15 16:19:35 -0400
committerkj_sh6042026-03-15 16:19:35 -0400
commitbc297e5e496d9f48ef77581b7fb41fdf328a62cf (patch)
tree66192466eef76ee4c5cf71a9788ae9fe947514d4 /dev-docs/src/theme/MDXComponents.js
parentf6538b8f1a78a7d72a41916ac79376f8c2d30193 (diff)
refactor: dev-docs/
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,
+};