diff --git a/src/components/MDXComponents.tsx b/src/components/MDXComponents.tsx index 669efb3c3c..18129b3369 100644 --- a/src/components/MDXComponents.tsx +++ b/src/components/MDXComponents.tsx @@ -80,7 +80,7 @@ const MDXComponents = { {children} @@ -97,7 +97,7 @@ const MDXComponents = { }, h2: ({ children }: any) => { return ( - + {children} ); @@ -116,7 +116,6 @@ const MDXComponents = { ); }, - // lists // tables table: ({ children }: any) => ( diff --git a/src/pages/[...slug].tsx b/src/pages/[...slug].tsx index 6f6d6fee87..4e4908c030 100644 --- a/src/pages/[...slug].tsx +++ b/src/pages/[...slug].tsx @@ -2,7 +2,7 @@ import fs from 'fs'; import matter from 'gray-matter'; import yaml from 'js-yaml'; import ReactMarkdown from 'react-markdown'; -import { Heading } from '@chakra-ui/react'; +import { Stack, Heading } from '@chakra-ui/react'; import MDXComponents from '../components/'; import { ParsedUrlQuery } from 'querystring'; import type { GetStaticPaths, GetStaticProps, NextPage } from 'next'; @@ -74,7 +74,13 @@ const DocPage: NextPage = ({ frontmatter, content }) => { return ( <>
- {frontmatter.title} + + {/* TODO: */} + + {frontmatter.title} + + {/* last edited {TODO: get last edited date} */} + {content}