Skip to content

Commit

Permalink
mdx parser fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nofurtherinformation committed Mar 29, 2024
1 parent 52a1994 commit 187809e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Nav/Renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const NavRenderer: React.FC<NavProps> = ({ navInfo }) => {
return (
<div className="sticky bg-gray-800 p-4 text-white">
<div className="flex justify-between">
{/* <h1>{navInfo.data.nav.title}</h1> */}
<h1>{navInfo.data.nav.title}</h1>
<ul className="flex justify-end">
{links.map((link, li) => (
<li className="mr-4" key={li}>
Expand Down
4 changes: 3 additions & 1 deletion hooks/useMdxContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ export const getMdxContent = async <T extends any>(contentType: keyof typeof cli
}
data[contentType][key].push(valueOut)
}
} else {
} else if (typeof value === 'object'){
data[contentType][key] = {
...value,
body: parseRich(value.body)
}
} else {
data[contentType][key] = value
}
}
return {
Expand Down

0 comments on commit 187809e

Please sign in to comment.