-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Enable Markdown footnotes extension #498
Comments
+1, it would be really useful! See current hacks on this SO thread |
+1 this is a problem for, e.g., https://github.com/GitClassics/PugnaPorcorum/blob/master/Latin/Pugna/Pugna.md @cjmcnamara |
@gjtorikian @bkeepers Guys can you please have a look at this issue. It is really minimal effort to make it working (just config setting), but it will bring real benefit to GitHub's markdown. |
+1, please. Thank you! |
We're discussing moving to a more formal standard like CommonMark. Realistically, we won't be introducing any more changes to the Markdown spec on our own. Sorry for any trouble this may cause. |
@gjtorikian So you are basically saying that not only there won't be footnotes on GitHub's markdowns, but also some existing features will stop working too because AFAIK GFM is not compatible entirely with CommonMark, eg. there are no tables. So well, I wish you good luck then, your service will be definitely compatible with a shinny standard (that does not exist yet) even your users don't give a damn. And the benefit for that is.... ugh.. I don't know. I hope you know. Looks like history repeats itself, and CommonMark is next XHTML. |
When tables and other features are added (as specs or extensions) to the Commomark standard, we will look more seriously at switching. We won't be removing any existing GFM functionality, but at this time, we won't be adding any new ones either (like footnotes). |
I should add, also, that adopting a Commonmark standard is precisely intended to benefit users, so that they can expect the exact same syntax functionality when they visit GitHub or StackOverflow or Reddit or wherever. It's not a frivolous change. |
It is really disappointing that you don't acknowledge that footnotes are important and desired. This is also expressed at CommonMark discussion board.
I am not arguing with that. I understand that having common Markdown format is good. What I am arguing with is using CommonMark as an argument against enabling footnotes, because they are not a part of current draft, when in same time you (GitHub) are a member this standard committee. Finally telling us (users) that's for our benefit. Honestly this does not hold water. If you want to do something for users benefit just enable them (because it is just simple switch in Kramdown), and in meantime make sure they make their way into the CommonMark standard too. |
I'm a big fan of GitHub… My work is using BitBucket. Footnotes is the one feature that I really like over at BitBucket. However, they lack many things like project-wide search. It's great for citing references (in research documents that can be tracked) and it can offer a means of creating a more in-depth discussion without diverting the current flow of content. I do not see footnotes worthwhile in comments, pull requests, and issues. However, I definitely can see them in README's and documentation (on wiki) Is it a deal breaker for GitHub? Absolutely not. Would it help (especially when migrating from BitBucket), yes. |
I agree: in my opinion you should integrate footnotes and, at the same time, drive the discussion on CommonMark for having footnotes implemented also in this standard. Please reopen this issue. Thank you! |
Seconding Stemby. This would be a boon to anyone who writes in an academic style on Github. |
Although it won't be found in Robert's Rules of Order ... I third the motion. |
This still isn’t working for me. |
This issue has been around for ~11 months; in the intervening ~5 since its closure, CommonMark has not been adopted by GitHub. (And as far as I can tell from the repository, CommonMark itself hasn't been updated in several months.) While the benefits of standardization are great (yay!), that's not a reason to not support this feature- not when it means ignoring your current users' requests for nearly a year. Another +1 for Stemby's comment. @gjtorikian: Please take another look. |
Is it Commonmark season? I swear this is the third time this week I've linked to my own tweet: https://twitter.com/gjtorikian/status/715962596004749312 The last Commonmark bump was literally 10 days ago: https://github.com/jgm/CommonMark/tree/69f680f01216a87051b020d6706766c7eff52bc2 We are not going to introduce a new Markdown feature, then wait around until Commonmark decides what to do. I'd rather we move to Commonmark, and then decide how to upgrade on the Markdown experience from there. If we move to include footnotes, we're not going to degrade that experience. And we really, really want to move to Commonmark first, because there's an obscene amount of corner cases that it solves. I am sorry that that's probably not the answer you want, but it's the only answer I've got. We're not ignoring anything. We're trying to upgrade a component that powers every text area on this site. |
Seconding @gjtorikian. Moving to CommonMark before any change will prevent incompatible upgrades. |
It's worth noting we are now on CommonMark: this comment is rendered by CommonMark, and we're transitioning all existing content to CommonMark (already mostly done! 🎉). We've put our own GFM-specific stuff (tables, stirkethru, etc.) on top of the reference |
Guys, CommonMark is lovely but we desperately need footnotes as well. Footnotes are pretty widely supported in offline Markdown applications now. CommonMark also does not support footnotes (much to the chagrin of Stackoverflow users). MultiMarkdown is the implementation which supports footnotes. But MultiMarkdown does not support strikethrough with two tildes so I'm not recommending it unconditionally (GitHub do support strikethrough). Discount(which is what I have enabled in Marked 2) supports both footnotes and strikethrough. Discount is the only Markdown version which has full satisfied me after much testing. You can see the nice list of Markdown extensions, Discount supports at the top of that page, including:
You cover all of those except footnotes and one more essential feature: strikethrough. Brett Tepstra of nvAlt and Marked 2 fame considers it worth his while to support Discount along with MultiMarkdown so I'm not the only one out there keen on Discount. Clean recommendation: Add the excellent working footnotes function from Discount. Dont touch anything else or make any other changes. According to John MacFarlane's Babelmark 2, the most robust footnotes implementation is to be found in MultiMarkdown 5.1 and 6 (equally good). A simpler footnotes version passes Pandoc 1.19.2, PHP Markdown Extra 1.2.8, Maruku 0.7.3.beta1, MultiMarkdown 5.1.0 and 6, kramdown 1.2.0. |
So... How do you do footnotes? |
According to GitHub, you don't need them provided for you in markdown. Fortunately, you can make them by adding html anchors and using Unicode to get you superscript/subscripts. You might be able to use / as well. Elegant, it is not, but it fakes it well enough. Poor performance. Octocat is crying. |
Follow this answer from the aforementioned SO thread |
So I've been trying the HTML solutions (from the SO thread, as mentioned above), and they don't seem to work properly in GitHub wikis. Here's my approach: <sup id="a1">[1](#f1)</sup>
1. <small id="f1"> Some footnote. </small> [↩](#a1) I seem to remember this having worked before when found in the in the repo source, but it definitely works with Kramdown on a Jekyll site (as would [^1], if only that wouldn't break things on GitHub). So it seems that there's very little that has been truly standardized even within GFM, let alone between GFM and CommonMark, so it seems to me that GitHub could simply allow the emerging footnote standard (in the manner of I don't know, this just seems silly to me--footnotes are (or should be) so essential to all sorts of documentation or other sorts of publication and should not be treated as a hack in markdown of any kind. |
Apparently GitHub Pages does not support Markdown footnotes as that's an extension to Markdown and not part of core Markdown syntax. For more info, see github/markup#498
Apparently GitHub Pages does not support Markdown footnotes as that's an extension to Markdown and not part of core Markdown syntax. For more info, see github/markup#498
- revised footnote from markup issue comment found here: github/markup#498 (comment)
Using html for footnotes since footnotes are not supported in [github flavored markdown](https://github.github.com/gfm/) See github/markup#498
It's 2020, please consider adding footnotes to github flavored markdown |
Removed footnote in CONTRIBUTING.md due to GitHub: github/markup#498.
++ |
Hm, I've just tested this and footnotes are rendered correctly on GitHub Pages (see an example) even though I removed this line from the _config.yml:
Also replacing it with:
... yields the same results. So can somebody please tell me the current status of this thing? BTW I know it doesn't belong here that much, but the documentation on markdown processors won't even tell you what is the default markdown used. While on the other hand, the very same page tries to explain you how to do a commit - why? |
It is INSANE that this has not been resolved, 5 years later. |
GFM is really limiting without footnotes, this should be addressed. |
C'MON GUYS! It's 5 years now, where are the footnotes? |
Such a sad fail that such a basic issue, not to mention required for even simple documents, has been brushed aside and ignored for five years. |
😕 2021 no footnotes ? why ? @aharpole would please reconsider. EDIT: mention the right person |
I don’t work at GitHub anymore, please contact their support and please stop mentioning me. |
Hi everyone. In the time since this issue was opened (and closed), footnote support appears to have been added to I cannot promise that it will make it in here (it's ultimately not up to me), but I will ask the right people to get this ball rolling and see if this issue can't be reopened. |
@aharpole ❤️ 🙏 |
Just adding a +1 |
GFM doesn't support footnote for now 🙀 github/markup#498
GFM doesn't support footnote for now. github/markup#498
GFM doesn't support footnote for now. github/markup#498
Where are we with the footnote feature now? 😄 |
It doesn't seem to fully work in It seems like they don't work here either as of writing this comment… [^1] The example images show code from my repo L2DB, in case you want to see it yourself. |
Please add support for footnote extension that is supported by Redcarpet, Kramdown implementations. You just need to enable it on GitHub, so it is really minimal effort.
I recently was trying to use it and I was surprised it does not work on GitHub. It is really a pity because it works well for reStructuredText, yet rst does not support table cell alignment.
So I am stuck at my readme with ugly footnotes: https://github.com/nanoant/WebFrameworkBenchmark/blob/master/README.md
The text was updated successfully, but these errors were encountered: