Skip to content

Pass custom <p> inside <blockquote> #1510

Answered by ChristianMurphy
valerioleo asked this question in Q&A
Discussion options

You must be logged in to vote

A couple possible approaches:

  1. rather than solving with JS, solve the problem with CSS, .custom-block-quote-classname p {/* some styles*/} could be used to style p just within the custom component
  2. If you do specifically want to style in JS, consider writing a plugin https://mdxjs.com/guides/writing-a-plugin which replaces p with CustomParagraph only when it's wrapped in blockquote

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants