Hey I have this list in my config.yaml
- label: "Itinerary"
name: "itinerary"
widget: "list"
summary: '{{fields.title}}'
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Description", name: "description", widget: "markdown" }
- { label: "Image", name: "image", widget: image }
And my query:
query FixedDepartureByID($id: String!) {
markdownRemark(id: { eq: $id }) {
id
frontmatter {
title
description
is_visible
group_size
remaining_seats
price
duration
difficulty
brochure
image {
childImageSharp {
gatsbyImageData(formats: [WEBP])
}
}
itinerary {
title
description //here this description is coming as string but not HTML
image {
childImageSharp {
gatsbyImageData(formats: [WEBP])
}
}
}
}
}
}
I want the description that’s a markdown as HTML only but when I’m querying this, I’m getting it as string…
Is there anything I’m doing wrong? or is it something else. I’m really new to this so forgive me if this’s a dumb question…