-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
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
How to stop inline code blocks
from rendering with the backticks?
#135
Comments
Why was this closed? The theming of the code blocks was changed in 47fe732. This looks very inconsistent with the |
This was changed before the library was even released. You can override the styles in your config: |
Thanks! That worked perfectly. |
So the answer in #18 works but just to save somebody's time, I'm going to paste it here for convenience's sake. module.exports = {
theme: {
extend: {
typography: {
DEFAULT: {
css: {
'code::before': {
content: '""'
},
'code::after': {
content: '""'
}
}
}
},
},
},
plugins: [require("@tailwindcss/typography")],
}; |
For future reference for Tailwind v3,
|
When I use the prose classname in my sanity richText, it renders the backticks onto the page when I do not want this. I just want it to show in consolas or whatever font for the inline code.
The text was updated successfully, but these errors were encountered: