Skip to content

Commit

Permalink
feat(gatsby-remark-images): enable relative images in jsx content (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherBiscardi authored and pieh committed May 26, 2019
1 parent c1d1f58 commit 1ccc3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-remark-images/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = (
// This will allow the use of html image tags
// const rawHtmlNodes = select(markdownAST, `html`)
let rawHtmlNodes = []
visitWithParents(markdownAST, `html`, (node, ancestors) => {
visitWithParents(markdownAST, [`html`, `jsx`], (node, ancestors) => {
const inLink = ancestors.some(findParentLinks)

rawHtmlNodes.push({ node, inLink })
Expand Down

0 comments on commit 1ccc3c2

Please sign in to comment.