fix: markdown paragraph margin (#8289)

This commit is contained in:
zxhlyh 2024-09-12 11:28:14 +08:00 • committed by GitHub
commit 0bb7569d46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 11 deletions

View file

@ -198,11 +198,11 @@ const Paragraph = (paragraph: any) => {
return (
<>
<ImageGallery srcs={[children_node[0].properties.src]} />
<div>{paragraph.children.slice(1)}</div>
<p>{paragraph.children.slice(1)}</p>
</>
)
}
return <div>{paragraph.children}</div>
return <p>{paragraph.children}</p>
}
const Img = ({ src }: any) => {