How to remove first pre tag from nested pre tag. #947
-
React markdown added two pre tag pre > pre which added a white background color. I want to remove it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
The don’t add it. |
Beta Was this translation helpful? Give feedback.
-
Hi 👋 I'm facing quite the same issue... @wooorm you were talking about configuration could you please be more explicit? There is actually a I tried a simple // within components prop
code: ({ children, className, inline }) => inline ? <code>{children}</code> : <p>{children}</p> which gives me at the end something like <pre>
<p>Lorem ipsum dolor sit amet...</p>
</pre> Thx in advance for your help! 🙏 |
Beta Was this translation helpful? Give feedback.
The don’t add it.
react-markdown
doesn’t add it. The way you configure it does.Also: see https://github.com/remarkjs/.github/blob/main/support.md for how to ask proper questions