Replies: 2 comments
-
|
I realize I can just target blockquotes through css but am still curious if there's a react-markdown native way to implement |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
You can override only the import ReactMarkdown from 'react-markdown';
import QuoteBlock from './QuoteBlock';
<ReactMarkdown
components={{
blockquote: ({ node, children }) => (
<QuoteBlock body={children} />
),
}}
>
{content}
</ReactMarkdown>This way, only quotes ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using react-markdown to render Strapi RichText. I want to render only quotes differently and not everything else
This is how I render QuoteBlocks but I want quotes within RichText blocks to also render like this:
QuoteBlock.tsxBeta Was this translation helpful? Give feedback.
All reactions