diff --git a/src/components/StaticSites/Markdown.tsx b/src/components/StaticSites/Markdown.tsx index 43c57d26..67b7b426 100644 --- a/src/components/StaticSites/Markdown.tsx +++ b/src/components/StaticSites/Markdown.tsx @@ -6,7 +6,7 @@ import rehypeKatex from 'rehype-katex' import remarkGfm from 'remark-gfm' import remarkMath from 'remark-math' -import {H1, H2, H3, Li, MarkdownLink, Ol, P, Table, Td, Th} from './Texts' +import {H1, H2, H3, MarkdownLink, Ol, P, Table, Td, Th, Ul} from './Texts' type MarkdownProps = { content: string @@ -25,8 +25,11 @@ export const Markdown: FC = ({content}) => ( h1: H1, h2: H2, h3: H3, + h4: H3, + h5: H3, + h6: H3, ol: Ol, - li: Li, + ul: Ul, }} > {content} diff --git a/src/components/StaticSites/Texts.tsx b/src/components/StaticSites/Texts.tsx index 2878e764..7910403c 100644 --- a/src/components/StaticSites/Texts.tsx +++ b/src/components/StaticSites/Texts.tsx @@ -2,11 +2,11 @@ import {Typography} from '@mui/material' import {FC, ReactNode} from 'react' import { HeadingProps, - LiProps, OrderedListProps, ReactMarkdownProps, TableDataCellProps, TableHeaderCellProps, + UnorderedListProps, } from 'react-markdown/lib/ast-to-react' import {Link} from '../Clickable/Link' @@ -45,8 +45,8 @@ export const Ol: FC = ({children}) => ( ) -export const Li: FC = ({children}) => ( - +export const Ul: FC = ({children}) => ( + {children} ) @@ -58,19 +58,19 @@ export const P: FC = ({children}) => ( ) export const H1: FC = ({children}) => ( - + {children} ) export const H2: FC = ({children}) => ( - + {children} ) export const H3: FC = ({children}) => ( - + {children} )