Hey,
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
Pakic
September 7, 2023, 9:02am
3
Hey,
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
I’ve looked at this video (the link will start at the rigth moment) https://youtu.be/W1rxkKcdjIE?feature=shared&t=1622
dejan
September 7, 2023, 10:21am
6
@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
https://longevity-lab.divhunt.art/detail
and this is what it looks like with markdown
appreciate any help.
and here is the data in strapi
dejan
September 7, 2023, 5:14pm
11
@josefwilhelm
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!
Pakic
September 8, 2023, 10:26am
13
Hey,
You can style all of the tags separately through child selector. Check out this video:
1 Like