Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
storm1729 committed Dec 28, 2024
1 parent 988e13a commit 013bbb3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Markdown.tsx
Original file line number Diff line number Diff line change
@@ -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 <span>{children}</span>;
},
};

export function LinkRenderer(d: Dictionary): CustomReactRenderer {
export function LinkRenderer(d: Dictionary) {
return {
link(href: string, text: ReactNode) {
return (
Expand Down

0 comments on commit 013bbb3

Please sign in to comment.