Strapi Rich Text - Markdown


I’m trying to build a blog and am using Strapi as a headless CMS.
I found Divhunt on Reddit and just connected Strapi.

I am struggling to show a well formated text however.

My content from Strapi, written in Markdown in the Rich Text Editor looks like this.
See the Divhunt image in the first comment.

Anyone any idea how to fix this?

This is how it is shown in Divhunt


Can you give me your website url, and I will create a tutorial here with screenshots on how I did it?

1 Like

The trick is the ->showdown when defining the content right ?
I’ve used it here for example :slight_smile:

I’ve looked at this video (the link will start at the rigth moment)

@xmasrock @josefwilhelm

Or use the ->markdown function, much better and more reliable, supports more features.

1 Like

I’ll change to markdown then. Thanks @dejan

if I use showdown it looks like this

here is the link to the website

and this is what it looks like with markdown

appreciate any help.

and here is the data in strapi


You need to use Embed in this case in order to render HTML, so just convert that element (is it Div or P?) to Embed, select it then from navbar find embed and right click on it.

thanks. this works.

but is there a way to style the markdown as well?
sorry for the many questions!


You can style all of the tags separately through child selector. Check out this video:

1 Like