-
Notifications
You must be signed in to change notification settings - Fork 294
Not always helpful to include " quotation marks for block-quote..what if you want to include source name? #66
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
Comments
I fixed in this way - dirty hack
|
you also can set false to disable it: 'blockquote p:first-of-type::before': false,
'blockquote p:last-of-type::after': false, |
There's any easier way to solve this... use the span element |
Hey! Thank you for your issue! The typography has more opinions compared to our other plugins. In case you don't want those quotes, you can unset them inside your config. |
@RobinMalfait Thank you for providing the solution, it does remove the quotes. But it also removes some of the CSS properties i.e it removes the margins defined in prose class. How can I fix this? |
I'm trying to write this in Tailwind for the sake of it instead of making a new class and this is what I've come up with: <div class="before:prose-p:content-none after:prose-p:content-none" /> I haven't been able to fit |
@mathieutu where should i exactly put those rules? I couldn't figure it out. |
@terlan4 put it in
https://tailwindcss.com/docs/typography-plugin#customizing-the-css |
This seems to work also:
|
For tailwind v4, you can do this in your @utility prose {
blockquote {
/* Disable adding quote marks to block-quotes: https://github.com/tailwindlabs/tailwindcss-typography/issues/66 */
p {
&:first-of-type::before,
&:last-of-type::after {
content: none;
}
}
}
} |
The text was updated successfully, but these errors were encountered: