From 8b7897cda89ca4830ba2fab5e6fc9f7fb1eac061 Mon Sep 17 00:00:00 2001 From: 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> Date: Wed, 31 Jan 2024 00:36:56 +0900 Subject: ExternalLink, BlockQuote, Highlight, Iconを追記 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/theme/MDXComponents.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 "" tag to our MessageBubble component // `MessageBubble` will receive all props that were passed to `` in MDX MessageBubble, + ExternalLink, + BlockQuote, + Highlight, + Icon: Icon, // Make the iconify Icon component available in MDX as . }; \ No newline at end of file -- cgit v1.2.3-54-g00ecf