plugin overwrites node data.hProperties set by other remark plugins
Closed this issue · 1 comments
vadimgo commented
When using gatsby-remark-external-links in combination with a plugin also setting node data.hProperties, such as gatsby-remark-default-html-attrs, the attributes set by the other plugin (when it runs earlier in the build process) get lost.
In index.js for gatsby-remark-external-links, the code
link.data = {
hProperties: {}
};
should change to
if (!link.data.hProperties) {
link.data = {
hProperties: {}
};
}
wooorm commented
This was fixed in >=3.0.0