Skip to content

Commit

Permalink
style: ensure no orphans in text contents
Browse files Browse the repository at this point in the history
  • Loading branch information
tdd committed Oct 24, 2024
1 parent e59b526 commit 0466ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MDX/MDXComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function CodeStep({children, step}: {children: any; step: number}) {
}

const P = (p: JSX.IntrinsicElements['p']) => (
<p className="whitespace-pre-wrap my-4" {...p} />
<p className="whitespace-pre-wrap my-4 text-pretty" {...p} />
);

const Strong = (strong: JSX.IntrinsicElements['strong']) => (
Expand All @@ -71,7 +71,7 @@ const OL = (p: JSX.IntrinsicElements['ol']) => (
<ol className="ms-6 my-3 list-decimal" {...p} />
);
const LI = (p: JSX.IntrinsicElements['li']) => (
<li className="leading-relaxed mb-1" {...p} />
<li className="leading-relaxed mb-1 text-pretty" {...p} />
);
const UL = (p: JSX.IntrinsicElements['ul']) => (
<ul className="ms-6 my-3 list-disc" {...p} />
Expand Down

0 comments on commit 0466ce4

Please sign in to comment.