Skip to content

Commit

Permalink
fix: ol as ul
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Aug 23, 2024
1 parent 4b3207f commit dd6a0dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/mdx/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export const h6 = ({ id, ...props }: Omit<ComponentProps<typeof Heading>, 'Tag'>
export const ul = (props: ComponentProps<'ul'>) => (
<ul className="my-4 mb-8 ms-6 list-disc" {...props} />
)
export const ol = (props: ComponentProps<'ol'>) => <ol className="my-4 mb-8 px-4" {...props} />
export const ol = (props: ComponentProps<'ol'>) => (
<ol className="my-4 mb-8 ms-6 list-decimal" {...props} />
)
export const li = (props: ComponentProps<'li'>) => <li className="my-1" {...props} />

export const p = (props: ComponentProps<'p'>) => <p className="my-4 text-base" {...props} />
Expand Down

0 comments on commit dd6a0dd

Please sign in to comment.