Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
fix embedded bullet points
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquim-verges committed Jul 30, 2024
1 parent a1c4fff commit 46841a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/references/components/TDoc/Summary.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FunctionSignature } from "typedoc-better-json";
import type { FunctionSignature } from "typedoc-better-json";
import { CodeBlock, InlineCode } from "../../../../components/Document/Code";
import { Paragraph } from "../../../../components/Document/Paragraph";
import { DocLink } from "../../../../components/Document/DocLink";
Expand All @@ -10,6 +10,7 @@ import { Heading } from "../../../../components/Document/Heading";

export function TypedocSummary(props: {
summary: NonNullable<FunctionSignature["summary"]>;
className?: string;
}) {
return (
<>
Expand Down Expand Up @@ -37,7 +38,7 @@ export function TypedocSummary(props: {

case "paragraph": {
return (
<Paragraph>
<Paragraph className={props.className}>
<TypedocSummary summary={s.children} />
</Paragraph>
);
Expand Down Expand Up @@ -66,7 +67,7 @@ export function TypedocSummary(props: {
case "listItem": {
return (
<li>
<TypedocSummary summary={s.children} />
<TypedocSummary summary={s.children} className="mb-0" />
</li>
);
}
Expand Down

0 comments on commit 46841a8

Please sign in to comment.