Join the Webstudio community

Updated 2 months ago

Content embed doesn't work with Payload

At a glance

A community member is setting up Payload for Webstudio and is facing an issue with displaying rich text content using the "Markdown Embed" feature. They have provided an API endpoint to test the issue, but are getting an error. Other community members suggest that the issue may be related to the data format sent by Payload, which is not a standard markdown string but a proprietary markdown AST (abstract syntax tree). They recommend using the "Content Embed" component instead, as Payload can also send HTML. The community members are still trying to find a solution to the issue.

Useful resources
Hi team I'm still setting up Payload for Webstudio. I'm solving the problems little by little. And I have 1 problem left. (I planned to make 1 tutorial because it's not so easy with Payload).

In fact I'm adding "Markdown Embed" to display my rich text content. But I get an error. You can test the API here: http://147.79.114.140:3000/api/blogs/674b3cbd06628cfaadc036cc?locale=undefined&draft=false&depth=1

Have y any idea ?
Attachment
markup_1000026058.png
O
M
24 comments
this is what I see on your url, btw you leaked the api key now, suggest to replace it
Attachment
image.png
Yeah I will no problem @Oleg Isonen . But have y try to use it ?
For the "content" it's a rich text
No, you need to share a link
why is it there? that "users API-Key"
Attachment
image.png
ignore it, seems to be returning data
don't see errors
I need an API to fully fetch the Blog. Otherwise I don't have all the data. I created a post saying that I couldn't recover all the data
The probleme is in the Mardkodown Embed. See what is display
Attachment
image.png
Hi @Oleg Isonen I'm still block, any idea ?
Can you make a video and explain what exactly doesn't work and where?
Like you see I can't display the rich content
payload is sending json and you are trying to use markdown component?
markdown component is designed for cmss that can send markdown string
what payload sends is not markdown, but a proprietary markdown ast (a json representing markdown)
in our database its marked that payload can send html as well
in this case you can use content embed component
Ok i will find this
it doesn't mean you can't use markdown in their editor
its about data format, not about the editing format
I'm lookinf for a solution
Add a reply
Sign up and join the conversation on Discord