diff --git a/src/components/Markdown.tsx b/src/components/Markdown.tsx index 7f23a64..9523ed4 100644 --- a/src/components/Markdown.tsx +++ b/src/components/Markdown.tsx @@ -1,15 +1,14 @@ -import { CustomReactRenderer } from "marked-react/dist/ReactRenderer"; import type { ReactNode } from "react"; import { DLink } from "./DLink"; import { Dictionary } from "@/dictionaries"; -export const SpanRenderer: CustomReactRenderer = { +export const SpanRenderer = { paragraph(children: ReactNode) { return {children}; }, }; -export function LinkRenderer(d: Dictionary): CustomReactRenderer { +export function LinkRenderer(d: Dictionary) { return { link(href: string, text: ReactNode) { return (