Pass custom <p> inside <blockquote> #1510
-
Hey, I'm new to MDX and I am trying to customise my components. I followed the example from gatsby docs and got something like this: import Typography from '../Typography';
import BlockQuote from '../BlockQuote';
<MDXProvider
components={{
p: props => <Typography {...props} paragraph variant='body2'/>,
blockquote: BlockQuote
}}
// ... The The current behaviour is that, when I have a quote in my .md files, it wraps my custom I am looking for a way to directly customise the Thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
A couple possible approaches:
|
Beta Was this translation helpful? Give feedback.
A couple possible approaches:
.custom-block-quote-classname p {/* some styles*/}
could be used to stylep
just within the custom componentp
withCustomParagraph
only when it's wrapped inblockquote