Skip to content

Commit

Permalink
fix(transformer-remark): resolve htmlAst correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
elboman committed Jan 26, 2018
1 parent 72e8bbe commit d125a71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/gatsby-transformer-remark/src/extend-node-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,10 @@ module.exports = (
htmlAst: {
type: GraphQlJson,
resolve(markdownNode) {
const ast = _.clone(getHTMLAst(markdownNode))
stripPosition(ast, true)
return ast
return getHTMLAst(markdownNode).then(ast => {
const strippedAst = stripPosition(_.clone(ast), true)
return strippedAst
})
},
},
excerpt: {
Expand Down

0 comments on commit d125a71

Please sign in to comment.