Run prettier

This commit is contained in:
Jared Palmer 2024-11-14 12:16:05 -05:00
parent e6806aaa54
commit 24cb81bce0
21 changed files with 4203 additions and 3520 deletions

View file

@ -1,12 +1,12 @@
import Link from "next/link";
import React, { memo } from "react";
import ReactMarkdown from "react-markdown";
import remarkGfm from "remark-gfm";
import Link from 'next/link';
import React, { memo } from 'react';
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
const NonMemoizedMarkdown = ({ children }: { children: string }) => {
const components = {
code: ({ node, inline, className, children, ...props }: any) => {
const match = /language-(\w+)/.exec(className || "");
const match = /language-(\w+)/.exec(className || '');
return !inline && match ? (
<pre
{...props}
@ -116,5 +116,5 @@ const NonMemoizedMarkdown = ({ children }: { children: string }) => {
export const Markdown = memo(
NonMemoizedMarkdown,
(prevProps, nextProps) => prevProps.children === nextProps.children,
(prevProps, nextProps) => prevProps.children === nextProps.children
);