Skip to content

Commit

Permalink
fix: banner inside markdown style
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jul 4, 2023
1 parent 6e6af1d commit a734909
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/ui/markdown/parsers/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const ContainerRule: MarkdownToJSX.Rule = {
<Markdown
value={content}
allowsScript
className="[&>p:first-child]:mt-0"
className="w-full [&>p:first-child]:mt-0"
/>
</Banner>
)
Expand All @@ -74,7 +74,11 @@ export const ContainerRule: MarkdownToJSX.Rule = {

return (
<Banner type={params} className="my-4" key={state?.key}>
<Markdown value={content} allowsScript />
<Markdown
value={content}
allowsScript
className="w-full [&>p:first-child]:mt-0"
/>
</Banner>
)
}
Expand Down

1 comment on commit a734909

@vercel
Copy link

@vercel vercel bot commented on a734909 Jul 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-git-main-innei.vercel.app
innei.in
shiro-innei.vercel.app
springtide.vercel.app

Please sign in to comment.