gatsby-transformer-remark lost footnotes with #29678 #30964
Labels
good first issue
Issue that doesn't require previous experience with Gatsby
help wanted
Issue with a clear description that the community can help with.
topic: remark/mdx
Related to Markdown, remark & MDX ecosystem
type: bug
An issue or pull request relating to a bug in Gatsby
Description
#29678 broke footnotes. They were extracted from remark in v 12.0.0 (https://github.com/remarkjs/remark/releases/tag/remark-stringify%408.0.0) to remark-footnotes https://github.com/remarkjs/remark-footnotes. Similar to
gfm
we need to import and load that module inextend-node-type.js
(gatsby/packages/gatsby-transformer-remark/src/extend-node-type.js
Line 120 in da503c6
Also, the
commonmark
andpedantic
options can be removed as remark no longer supports them (https://github.com/remarkjs/remark/releases/tag/13.0.0)Downgrading to
gatsby-transformer-remark@3.3.0-next.1
restores footnote support.Steps to reproduce
See starter blog with remark. Add a footnote. See it does not process.
Expected result
Footnotes should be supported.
Actual result
Footnotes are not transformed.
Environment
The text was updated successfully, but these errors were encountered: