Is it possible to make italic text or italic bold in a markdown file used in the CMS red by using CSS or something?
Sure!
In the Markdown Component add the following classes to the CSS Classes field under Advanced:
To make the italic text red use the following code:
[&_em]:text-red-600
To make the italic text bold use the following code:
prose-em:font-bold
To make the italic text bold and red use the following code:
[&_em]:text-red-600 prose-em:font-bold
Hi Dan,
So that’s for the Markdown component, but I wanted to style text in the CMS blog post. Will it work there as well.
That does work in the Typography component with CMS.
Awesome, glad you got it working ![]()
