-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gatsby-remark-responsive-iframe): use html node rather than unkno…
…wn node type (#12543) ## Description The gatsby-remark-responsive-images plugin will now directly insert an HTML node rather than HAST data attributes. This should have no effect because we're already embedding HTML as part of the compilation process. It will break any potential plugin that might be depending on the existence of these data attributes, but as far as I can tell it isn't being used (especially considering the node type is marked as "unknown"). This makes it easier for other projects like gatsby-mdx to support existing gatsby-remark-* plugins because then we can watch for HTML nodes injected into the MDAST and transform them to JSX. ## Related: - Downstream issue: ChristopherBiscardi/gatsby-mdx#183 - HTML injection: https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-transformer-remark/src/extend-node-type.js#L489-L492
- Loading branch information
Showing
3 changed files
with
114 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters