Earlier quoted context omitted.
WOW I didn't even know markdown has footnotes will definantly come in handy for one of my projects. Thank you!
It doesn't have footnotes. Some supersets do.
Show HN: A new way to do footnotes
11–20 of 39 posts
Re: Show HN: A new way to do footnotes
#12Earlier quoted context omitted.
It doesn't have footnotes. Some supersets do.
Right, but it's worth noting that those supersets are very common. I'd say it's actually less common to run into a "barebones" Markdown implementation these days than to run into a GFM or close-to-GFM one.
Re: Show HN: A new way to do footnotes
#13Earlier quoted context omitted.
it looks like it aggregates all footnote definitions into one where it can be printed with the keyword 'notes' (hardcoding? too clever? what if you want to separate footnotes?)
I can’t see what this offers over pandoc markdown or it’s successor: https://htmlpreview.github.io/?https://github.com/jgm/djot/b...
Re: Show HN: A new way to do footnotes
#14All I get is a blank window in Safari.
Works on my iPad. Any JS restrictions in your browser?
[Error] SyntaxError: Unexpected token '='. Expected an opening '(' before a method's parameter list. (anonymous function) (libs.js:16558)
[Error] ReferenceError: Can't find variable: AbstractTreeComponent Global Code (app.js:4)
[Error] ReferenceError: Cannot access uninitialized variable. (anonymous function) (try.scroll.pub:17)
Re: Show HN: A new way to do footnotes
#15Re: Show HN: A new way to do footnotes
#16Some nice things:
* The footnotes are off to the side, so it's closer to the text that mentions it and it doesn't interrupt the flow of the main text.
* It uses colors, so it's pretty fast to visually jump to the right one.
* We keep the numbers too, for colorblind folks (and those using blue-light filters like f.lux)
* It works without javascript!
Our markdown->html renderer makes this happen by slicing up the page horizontally, one slice per header. Each slice then has a wide left column for the main text, and a narrow right column for the footnotes. Then if the user happens have javascript enabled, it position:absolute's the footnotes and lines them up a little more precisely with where they're mentioned.
Re: Show HN: A new way to do footnotes
#17Clicking on the number should ideal take me to footnote but it isn't. Instead its redirecting to a different page taking about scroll
Re: Show HN: A new way to do footnotes
#18Earlier quoted context omitted.
WOW I didn't even know markdown has footnotes will definantly come in handy for one of my projects. Thank you!
It doesn't have footnotes. Some supersets do.
This is some text with a footnote.[^1]
[^1]: And that's the footnote.
Re: Show HN: A new way to do footnotes
#19Anyone interested in footnotes might like the way we do it on the Vale site, for example: https://verdagon.dev/blog/making-regions-part-1-human-factor Some nice things: * The footnotes are off to the side, so it's closer to the text that mentions it and it doesn't interrupt the flow of the main text. * It uses colors, so it's pretty fast to visually jump to the right one. * We keep the numbers too, for colorblind fol…