We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I wanted to reduce the padding for <pre>, this didn't work for me
<pre>
<Code {...props} extensions={[ { name: "pre", Pre: (props: BrightProps) => ( <Code.Pre style={{ border : "5px solid red" }} className="my-32 ring-8" {...props} /> ), }, ]} />
Also this
<Code {...props} name: "pre", Pre={(props: BrightProps) => ( <Code.Pre style={{ border : "5px solid red" }} className="my-32 ring-8" {...props} /> )} />
The text was updated successfully, but these errors were encountered:
Quick walkaround for those who are stuck
<Code {...props} extensions={[ { name: "pre", Pre: (props: BrightProps) => ( <div className="[&>pre]:!py-1"> <Code.Pre {...props} /> </div> ), }, ]} />
Sorry, something went wrong.
No branches or pull requests
I wanted to reduce the padding for
<pre>
, this didn't work for meAlso this
The text was updated successfully, but these errors were encountered: