Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby-plugin-mdx): Unwrap images #36856

Merged
merged 2 commits into from Oct 24, 2022

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
2 participants