Skip to content

Commit a734909

Browse files
committed
fix: banner inside markdown style
Signed-off-by: Innei <[email protected]>
1 parent 6e6af1d commit a734909

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/ui/markdown/parsers/container.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const ContainerRule: MarkdownToJSX.Rule = {
6262
<Markdown
6363
value={content}
6464
allowsScript
65-
className="[&>p:first-child]:mt-0"
65+
className="w-full [&>p:first-child]:mt-0"
6666
/>
6767
</Banner>
6868
)
@@ -74,7 +74,11 @@ export const ContainerRule: MarkdownToJSX.Rule = {
7474

7575
return (
7676
<Banner type={params} className="my-4" key={state?.key}>
77-
<Markdown value={content} allowsScript />
77+
<Markdown
78+
value={content}
79+
allowsScript
80+
className="w-full [&>p:first-child]:mt-0"
81+
/>
7882
</Banner>
7983
)
8084
}

0 commit comments

Comments
 (0)