@@ -3,14 +3,15 @@ import { useState } from 'react';
33import LoadingIndicator from '@/app/entities/common/Loading/LoadingIndicator' ;
44import ImageZoomOverlayContainer from '@/app/entities/common/Overlay/Image/ImageZoomOverlayContainer' ;
55import Overlay from '@/app/entities/common/Overlay/Overlay' ;
6+ import Callout from '@/app/entities/post/detail/Callout' ;
67import OgLinkCard from '@/app/entities/post/detail/OgLinkCard' ;
78import PostTOC from '@/app/entities/post/detail/PostTOC' ;
89import TagBox from '@/app/entities/post/tags/TagBox' ;
910import useOverlay from '@/app/hooks/common/useOverlay' ;
1011import useTheme from '@/app/hooks/useTheme' ;
1112import MDEditor from '@uiw/react-md-editor' ;
1213import {
13- asideStyleRewrite ,
14+ asideToCallout ,
1415 addDescriptionUnderImage ,
1516 renderYoutubeEmbed ,
1617 renderOpenGraph ,
@@ -79,9 +80,11 @@ const PostBody = ({ content, tags, loading }: Props) => {
7980 components = { {
8081 ogcard : ( { href } : { href ?: string } ) =>
8182 href ? < OgLinkCard href = { href } /> : null ,
83+ callout : ( { emoji, children } : { emoji ?: string ; children ?: React . ReactNode } ) =>
84+ < Callout emoji = { emoji } > { children } </ Callout > ,
8285 } as any }
8386 rehypeRewrite = { ( node , index ?, parent ?) => {
84- asideStyleRewrite ( node ) ;
87+ asideToCallout ( node ) ;
8588 renderOpenGraph ( node , index , parent as Element | undefined ) ;
8689 renderYoutubeEmbed (
8790 node ,
0 commit comments