Download src/components/features/markdown/paragraph.tsx from SaylorTwift/openhands: direct link, hf CLI and curl.
- Browser
- Download file 371 Bytes
-
https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/markdown/paragraph.tsx
- Command line
-
hf download hf://SaylorTwift/openhands/src/components/features/markdown/paragraph.tsx
-
curl -L -o paragraph.tsx https://huggingface.co/SaylorTwift/openhands/resolve/main/src/components/features/markdown/paragraph.tsx
371 Bytes
| import React from "react"; | |
| import { ExtraProps } from "react-markdown"; | |
| // Custom component to render <p> in markdown with bottom padding | |
| export function paragraph({ | |
| children, | |
| }: React.ClassAttributes<HTMLParagraphElement> & | |
| React.HTMLAttributes<HTMLParagraphElement> & | |
| ExtraProps) { | |
| return <p className="py-1.5 leading-6 first:pt-0 last:pb-0">{children}</p>; | |
| } | |