Skip to content

Conversation

@LekoArts
Copy link
Contributor

@LekoArts LekoArts commented Oct 21, 2022

Description

Adds https://github.com/remarkjs/remark-unwrap-images to gatsby-plugin-mdx. To quote its README:

This package is a unified (remark) plugin that searches for paragraphs which contain only images (possibly in links) and nothing else, and then remove those surrounding paragraphs.

We didn't do this during the v4 lifecycle as this can be considered a breaking change.

Documentation

I'll add notes about this in #36763

Related Issues

Fixes #36211
Fixes #16239

[ch53708]

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Oct 21, 2022
@LekoArts LekoArts added topic: remark/mdx Related to Markdown, remark & MDX ecosystem and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Oct 21, 2022
@tyhopp tyhopp merged commit 94d18fa into master Oct 24, 2022
@tyhopp tyhopp deleted the remark-unwrap-content-from-paragraph branch October 24, 2022 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: remark/mdx Related to Markdown, remark & MDX ecosystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gatsby-remark-images nests figure in p [gatsby-plugin-mdx] Images within <figure> nested within <p> tags are invalid

3 participants