aboutsummaryrefslogtreecommitdiff
path: root/src/theme/MDXComponents.js
diff options
context:
space:
mode:
author安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com>2024-01-31 00:36:56 +0900
committer安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com>2024-01-31 00:36:56 +0900
commit8b7897cda89ca4830ba2fab5e6fc9f7fb1eac061 (patch)
tree7486239a2092c0ae9719fb103b1c07e7c1c51c7a /src/theme/MDXComponents.js
parent361f2b90070d99ce4676f4aed088e83f31eac325 (diff)
ExternalLink, BlockQuote, Highlight, Iconを追記
Diffstat (limited to 'src/theme/MDXComponents.js')
-rw-r--r--src/theme/MDXComponents.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/theme/MDXComponents.js b/src/theme/MDXComponents.js
index 5af587d9..87b61d24 100644
--- a/src/theme/MDXComponents.js
+++ b/src/theme/MDXComponents.js
@@ -2,6 +2,10 @@ import React from 'react';
// Import the original mapper
import MDXComponents from '@theme-original/MDXComponents';
import MessageBubble from '@site/src/components/MessageBubble';
+import ExternalLink from '@site/src/components/ExternalLink';
+import BlockQuote from '@site/src/components/BlockQuote';
+import Highlight from '@site/src/components/Highlight';
+import { Icon } from '@iconify/react'; // Import the entire Iconify library.
export default {
// Re-use the default mapping
@@ -9,4 +13,8 @@ export default {
// Map the "<MessageBubble>" tag to our MessageBubble component
// `MessageBubble` will receive all props that were passed to `<MessageBubble>` in MDX
MessageBubble,
+ ExternalLink,
+ BlockQuote,
+ Highlight,
+ Icon: Icon, // Make the iconify Icon component available in MDX as <icon />.
}; \ No newline at end of file