Skip to content

Commit

Permalink
fix: markdown h1,h2,h3
Browse files Browse the repository at this point in the history
  • Loading branch information
alarv committed Sep 9, 2024
1 parent c01ad78 commit 836fe52
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/app/dashboard/models/[modelId]/components/MarkdownRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,25 @@ export default function MarkdownRenderer({
return <p className="mb-2 last:mb-0">{children}</p>;
},
h1({ children }) {
return <h1 className="text-bold mb-4 text-3xl">{children}</h1>;
return (
<h1 className="mb-4 text-3xl font-bold sm:tracking-tight">
{children}
</h1>
);
},
h2({ children }) {
return <h2 className="text-bold mb-3 text-2xl">{children}</h2>;
return (
<h2 className="mb-3 text-2xl font-bold sm:tracking-tight">
{children}
</h2>
);
},
h3({ children }) {
return <h3 className="text-bold mb-2 text-xl">{children}</h3>;
return (
<h3 className="mb-2 text-xl font-bold sm:tracking-tight">
{children}
</h3>
);
},
ol({ children }) {
return <ol className="list-inside list-decimal">{children}</ol>;
Expand Down

0 comments on commit 836fe52

Please sign in to comment.