Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"postcss-preset-mantine": "^1.17.0",
"postcss-simple-vars": "^7.0.1",
"prettier": "3.5.2",
"react-markdown": "^9.0.3",
"react-markdown": "^10.0.0",
"rehype-raw": "^7.0.0",
"rehype-slug": "^6.0.0",
"typescript": "^5.7.3"
Expand Down
3 changes: 1 addition & 2 deletions src/app/blog/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ export function BlogPost({ metadata, type }: BlogPostProps) {
{metadata.year}-{metadata.month}-{metadata.day}
</Text>
</Group>
<div>
<div className={type == "excerpt" ? classes.excerpt : classes.contents}>
<Markdown
className={type == "excerpt" ? classes.excerpt : classes.contents}
Comment on lines -52 to -54
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See: https://github.com/remarkjs/react-markdown/blob/main/changelog.md#remove-classname

Since we already had a <div> directly around the <Markdown> (and nothing else) here, I assumed we don't need to add another layer.

rehypePlugins={[rehypeRaw, rehypeSlug]}
components={{
a(props) {
Expand Down
Loading