[Feature Announcement] Rich Text Editor Footnotes

By Jonathan Mustin @ 2022-01-04T21:16 (+114)

I'm excited to announce that the EA Forum now has footnote support in our default rich text editor.

You can add footnotes in two ways:

1. Using the tooltip menu when text is selected, (edit: now present in the block menu as well, on the left side of the editor,) under the [*] label:

2. Using markdown footnote syntax. To use this:

Both of these create a footnote reference at the current position, which looks like this [1], while also inserting a corresponding footnote at the bottom of the page (unless referencing an existing footnote).

A few points:

We hope you enjoy them! If you run into any issues, feel free to let us know in the comments of this post.

Thanks, and happy new year!

  1. ^

    Sample footnote.

  2. ^

    A tradeoff of this approach is that footnotes might reorder without you noticing in the midst of writing a post, for instance when a footnote gets inserted out of order or deleted. If you're adding an additional reference for an existing footnote, it's probably a good idea to check that it still has the index you expect.


Pablo @ 2022-01-05T01:46 (+19)

This is fantastic! I'm excited that the Wiki will gradually replace the static and distracting inline citations with dynamic and hoverable footnotes.

One thing I noticed is that, when there are multiple footnote references pointing to the same footnote, the link that takes you back to the footnote reference always points to its first occurrence. Although this is not very important, I think that, ideally, there should be separate links for each footnote reference.

For illustration, compare the Wiki entry on Cari Tuna (which I just edited so that it uses footnotes rather than inline citations) with the corresponding Wikipedia entry. Both entries cite the article by Ariana Eunjung Cha multiple times, but only the footnote in the Wikipedia entry has separate links to each of the associated footnote references. (Incidentally, I think that the Wikipedia functionality could be improved by displaying a tooltip with the sentence immediately preceding the associated footnote reference when the user hovers over the link to that reference. This would make it easier to identify the relevant link and resume reading from the correct location.)

Jonathan Mustin @ 2022-01-05T18:25 (+7)

Thanks Pablo! Added it to the list. The return tooltip idea in particular is clever. This one might take a bit of work, enough that I don't expect it to go in the immediate quick-fix bucket, but I agree it's a good addition and I will look into it!

Jonathan Mustin @ 2022-01-04T21:57 (+13)

A few things that have been brought to our attention, which I'm currently looking into:

Jsevillamol @ 2022-01-04T22:25 (+9)

I am so excited for this feature! Finally I will be able to update my posts with real footnotes instead of awkwardly adding them at the end of my posts ^^

david_reinstein @ 2022-01-05T01:22 (+7)

Hover-over is the big win here! Without hover-over, it's a chore to digest footnotes.

Guy Raveh @ 2022-01-05T11:31 (+5)

One (possibly stupid) question: in markdown mode, where do I write the actual content of the footnote?

david_reinstein @ 2022-01-05T15:39 (+1)

Typically it’s

Text.[1]


  1. content of footnote ↩︎

david_reinstein @ 2022-01-05T15:41 (+3)

Ah that rendered…

 

so it’s text^[contents of footnote]

Guy Raveh @ 2022-01-06T01:26 (+1)

Thanks!

Ozzie Gooen @ 2022-01-04T22:34 (+5)

Yay, thanks so much!

John G. Halstead @ 2022-01-10T15:33 (+3)

thanks for doing this, v helpful

Isaac King @ 2022-01-08T23:59 (+2)

This is great! One minor flaw I noticed is that clicking the "^" to take me back to the footnote reference puts that reference at the top of the page, which means it's hidden behind the header. I have to scroll up a few lines before I can continue where I left off.

Jonathan Mustin @ 2022-01-09T07:52 (+2)

Thanks Isaac! Right, I should've listed this under known shortcomings: I worked on a fix for this not long before releasing the feature, but the canonical solutions I found for this problem either a) weren't usable in this case or b) interfered with text selection in the lines preceding the footnote reference. I'll take another stab at it this coming week.