Skip to content

Commit

Permalink
feat: fix ol li's
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din committed Mar 24, 2024
1 parent a462c83 commit 60d11e1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/design/MarkDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ const MarkDown = ({ text, className }: { text: string; className?: string }) =>
h3({ children }) {
return <h3 id={generateHeadingId(children.toString())}>{children}</h3>;
},
li({ children }) {
return (
<li
style={{
marginLeft: '1rem',
marginTop: '0.5rem',
marginBottom: '0.5rem'
}}>
{children}
</li>
);
},
code({ node, inline, className, children, ...props }) {
const match = /language-(\w+)/.exec(className || '');
return !inline && match ? (
Expand Down

0 comments on commit 60d11e1

Please sign in to comment.