gatsby-remark-images nests figure
in p
#36211
Labels
help wanted
Issue with a clear description that the community can help with.
status: confirmed
Issue with steps to reproduce the bug that’s been verified by at least one reviewer.
topic: remark/mdx
Related to Markdown, remark & MDX ecosystem
type: bug
An issue or pull request relating to a bug in Gatsby
Milestone
Preliminary Checks
Description
When using
gatsby-remark-images
along with theshowCaptions
feature, it creates afigure
element which is nested inside ap
, which is not valid HTML.This issue has been reported before: #16239
The latest comment on that issue said to open a new bug if this still exists in Gatsby 4, so I have created minimal reproduction from gatsby-starter-blog and setting
showCaptions
totrue
.Reproduction Link
https://github.com/schwigri/gatsby-starter-blog
Steps to Reproduce
npm run develop
ornpm run build && npm run serve
figure
element that is nested inside ap
element.<p></p><figure />
Expected Result
Actual Result
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: