-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Footnotes aren't rendering in Markdown #1434
Comments
Hmm I'm not sure why that doesn't work... things to check are what the markdown AST looks like for a very simple post and if in the html conversion process if footnotes need to be enabled there as well. |
Possibly one of the gatsby remark plugins is interfering with the conversion as well so you could try disabling them. |
Damn, had testing and documenting footnotes on my list when setting up https://using-remark.gatsbyjs.org/ … and then forgot about it! Thanks for bringing this up @benmccormick! |
@fk @KyleAMathews Turns out that remark changed the way they load options recently. Updating to the new style fixes the issue. See #1441 |
Fixes gatsbyjs#1434 Remark now loads options with a `data` method instead of directly in the constructor.
Fixes #1434 Remark now loads options with a `data` method instead of directly in the constructor.
It looks like gatsby is intending to render footnotes when parsing Markdown, based on the plugin code. Unfortunately this isn't happening in practice.
I'm seeing this behavior on my site. This post for example is based on this source. You can scroll down and see that the footnote isn't being formatted.
I was able to verify the behavior outside of my environment by cloning https://github.com/KyleAMathews/blog and adding a footnote to a post. It also didn't format. I also disabled all of the remark-plugins my blog was using, and didn't see any difference. I'm going to try to look into this, but would appreciate help if this is simple for someone else, since I've never done anything with remark and don't have a lot of context.
Minimal test case I'd expect to work, but isn't:
should be formatted to footnote html that links the references.
The text was updated successfully, but these errors were encountered: