How do inline footnotes work?

I just saw an "inline footnote" on another thread: Why this actor call doesn't need await? - #6 by John_McCall

The quote doesn't render it correctly, so here's a screenshot:

How do I write these?

1 Like

Here is attempt 1 ^[foo] [1]
Attempt 2 [^1] [2]

I think these are the right plugin docs, but I'm not sure: Discourse Footnote - plugin - Discourse Meta


  1. foo ↩︎

  2. bar ↩︎

This statement needs a footnote[^1].

[^1]: Here is the footnote text.

It's a feature of a lot of markdown renderers these days, although it's not universal.

7 Likes

To answer a question you did not ask, here is how you can find the answer to questions of the form “How was a specific comment on this forum written?”

  1. Copy the link to the comment.

  2. Replace t/<topic name> with raw in the link.

For the example you gave, that means changing

https://forums.swift.org/t/why-this-actor-call-doesnt-need-await/73356/6

to

https://forums.swift.org/raw/73356/6

9 Likes

Oh interesting, I just discovered it's different between the markdown preview, and the rendering of the actual comment.

My comment above did it correctly, so now it looks like I'm gravely confused haha