# Making Italic Text in a Markdown file red

**URL:** <https://forums.realmacsoftware.com/t/making-italic-text-in-a-markdown-file-red/54279>\
**Category:** Elements\
**Created:** [February 11, 2026, 5:38pm UTC](https://forums.realmacsoftware.com/t/making-italic-text-in-a-markdown-file-red/54279 "2026-02-11T17:38:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ercross](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@ercross](https://forums.realmacsoftware.com/u/ercross)\
**Post date:** [February 11, 2026, 5:38pm UTC](https://forums.realmacsoftware.com/t/making-italic-text-in-a-markdown-file-red/54279/1 "2026-02-11T17:38:35Z")

</div>

Is it possible to make italic text or italic bold in a markdown file used in the CMS red by using CSS or something?

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [February 11, 2026, 9:46pm UTC](https://forums.realmacsoftware.com/t/making-italic-text-in-a-markdown-file-red/54279/2 "2026-02-11T21:46:08Z")

</div>

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:

```auto
[&_em]:text-red-600

```

To make the italic text bold use the following code:

```auto
prose-em:font-bold

```

To make the italic text bold and red use the following code:

```auto
[&_em]:text-red-600 prose-em:font-bold

```

 ![CleanShot 2026-02-11 at 9 .44.33@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/d/2/d230e4cec8e5fc428db01ee506dafd9e6913d6e0.jpeg)

---

<div class="post-metadata">

**Author:** ![ercross](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@ercross](https://forums.realmacsoftware.com/u/ercross)\
**Post date:** [February 11, 2026, 10:12pm UTC](https://forums.realmacsoftware.com/t/making-italic-text-in-a-markdown-file-red/54279/3 "2026-02-11T22:12:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ercross](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@ercross](https://forums.realmacsoftware.com/u/ercross)\
**Post date:** [February 12, 2026, 11:46am UTC](https://forums.realmacsoftware.com/t/making-italic-text-in-a-markdown-file-red/54279/4 "2026-02-12T11:46:15Z")

</div>

That does work in the Typography component with CMS.

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [February 12, 2026, 12:19pm UTC](https://forums.realmacsoftware.com/t/making-italic-text-in-a-markdown-file-red/54279/5 "2026-02-12T12:19:21Z")

</div>

Awesome, glad you got it working 🙂
