From d397503c66ab580a7d9e3a885ab85a380cf215bc Mon Sep 17 00:00:00 2001 From: rei Date: Fri, 30 Dec 2022 14:14:05 +0100 Subject: [PATCH] markdown features --- components/Navbar.tsx | 2 +- components/PostHeader.tsx | 47 ++++ content/projects/markdown-test.md | 11 +- package.json | 5 + pages/blog/[slug].tsx | 50 ++-- pages/blog/index.tsx | 19 +- pages/project/[slug].tsx | 51 ++-- pages/projects/index.tsx | 15 +- styles/globals.css | 21 ++ utils/general.ts | 25 ++ utils/markdown.ts | 3 +- utils/reactmarkdown.tsx | 87 +++++++ yarn.lock | 410 +++++++++++++++++++++++++++++- 13 files changed, 651 insertions(+), 95 deletions(-) create mode 100644 components/PostHeader.tsx create mode 100644 utils/reactmarkdown.tsx diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 7308451..ab85b2e 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -13,7 +13,7 @@ export const Navbar = () => { const [showMenu, setShowMenu] = useState(false); return ( -