Skip to content

Commit

Permalink
feat: change markdown design
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace committed Oct 8, 2024
1 parent 38e0603 commit c3528e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/(routes)/(main)/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default async function BlogPage() {
<span className="text-xs font-bold uppercase text-muted-foreground">
{formatDate(post.createdAt)}
</span>
<Badge className="hidden w-min capitalize md:flex">{post.tag}</Badge>
<Badge className="flex w-min capitalize">{post.tag}</Badge>
</div>
<Link href={`/blog/${post.slug}`} className="relative text-xl font-bold underline">
{post.title}
Expand Down
2 changes: 1 addition & 1 deletion components/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Markdown = ({ markdown }: { markdown: string }) => {
return (
<>
<article
className="prose dark:prose-invert prose-pre:rounded-2xl prose-pre:bg-secondary/25 prose-img:rounded-2xl"
className="prose dark:prose-invert prose-pre:rounded-2xl prose-pre:border prose-pre:bg-secondary/25 prose-img:rounded-2xl"
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(marked.parse(markdown) as string, {
USE_PROFILES: { html: true },
Expand Down

0 comments on commit c3528e0

Please sign in to comment.