'use client'; import ReactMarkdown from 'react-markdown' import remarkGfm from 'remark-gfm' import rehypeHighlight from 'rehype-highlight' import 'highlight.js/styles/github.css' import { PhotoProvider, PhotoView } from 'react-photo-view'; import 'react-photo-view/dist/react-photo-view.css'; import rehypeRaw from 'rehype-raw' import Image from "next/image"; export function BlogContent({ content }: { content?: string }) { return (

, h2: ({ ...props }) =>

, h3: ({ ...props }) =>

, h4: ({ ...props }) =>

, h5: ({ ...props }) =>
, p: ({ ...props }) =>

, img: ({ src }) => (

加载失败
), th: ({ ...props }) => , td: ({ ...props }) => , table: ({ ...props }) =>
, pre: ({ ...props }) =>
,
                blockquote: ({ ...props }) => 
, a: ({ ...props }) => , }} >{content} ) }