# Extend Footnote to include 'annotations'

**URL:** https://meta.discourse.org/t/extend-footnote-to-include-annotations/230857
**Category:** Feature
**Tags:** footnote
**Created:** [June 13, 2022, 2:04pm UTC](https://meta.discourse.org/t/extend-footnote-to-include-annotations/230857 "2022-06-13T14:04:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mlgtechuser](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mlgtechuser/32/262708_2.png) [@mlgtechuser](https://meta.discourse.org/u/mlgtechuser)
#### Post date: [June 13, 2022, 2:04pm UTC](https://meta.discourse.org/t/extend-footnote-to-include-annotations/230857/1 "2022-06-13T14:04:59Z")

</div>

Testing… The editor always shows something different from what gets rendered in the topic thread \[1\] `markdown: [^note] + [^note]: This is supposed to be a footnote.`.

[**In a test post**](https://discuss.python.org/t/footnote-markdown-plugin/7845/10?u=mlgtechuser) over at [discourse.python.org](http://discourse.python.org), placing the caret inside OR outside the square brackets both produce an inline note \[2\] `markdown: ^[this is coded as an inline note]`.

…and the same thing happens here. It looks great in the editor’s Preview Pane, but doesn’t render as expected in the thread. (Although the hyperlinks are also very dark _and small_ in the Dark Theme currently active at [discourse.python.org](http://discourse.python.org).)

I think I’m going to use folding dropdowns \<1\>.

> **\<1\>**
>
> Because I can put them immediately after the paragraph that relates to the extra info–and they might, when collapsed, even take up fewer lines than a long footnote would. (Tried to use square brackets around the ‘1’ but couldn’t figure out how to escape the square brackets to keep them from confusing the markdown interpreter.)

* * *

1. This is supposed to be a footnote. 

2. This is coded as an inline note

---

<div class="post-metadata">

### Author: ![mlgtechuser](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mlgtechuser/32/262708_2.png) [@mlgtechuser](https://meta.discourse.org/u/mlgtechuser)
#### Post date: [June 16, 2022, 3:12pm UTC](https://meta.discourse.org/t/extend-footnote-to-include-annotations/230857/2 "2022-06-16T15:12:49Z")

</div>

We’re struggling with this at `discuss.python.org`.

These options for supplemental notation can enhance the deep richness of Discourse. There are some keys to a successful implementation, though.

The main departure from ideal is using the term ‘footnote’ for something that patently is something else. An _ **inline** note_ is inline whereas a **foot** note is at the foot/bottom of the page (in our case, the foot of the message).

And that highlights the second departure: footnotes and inline notes are two distinctly different types of note with ostensibly different use cases and different best practices for their effective use. Therefore, they should be separate features and probably controlled by separate sets of config variables.

Through the option of changing the caret location, the user can decide whether to use an in situ expansion (inline note) or a remote reference (footnote). Right now, both constructions produce an inline note. We’ve found this a bit baffling, though it is useful to place bulky note text at the bottom of a message rather than having it interlope onto the body text in the composition editor.

At any rate, we at `discuss.python.org` would very much like to be able to use both inline notes and footnotes. It would extend the engaging nature of a well-composed topic post.

One option is to have the caret’s location be two different switches:  
`^[txt]` to make an inline note.  
`[^lbl]` to make a footnote.  
`^[^lbl]` to make an inline note with the note text located remotely from it’s display location.

A common name for these two supplemental text items is ‘Annotations’.

---

<div class="post-metadata">

### Author: ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)
#### Post date: [June 16, 2022, 6:32pm UTC](https://meta.discourse.org/t/extend-footnote-to-include-annotations/230857/3 "2022-06-16T18:32:30Z")

</div>

I think this would probably be best first resolved as part of the CommonMark spec. See [How should footnotes behave? - Extensions - CommonMark Discussion](https://talk.commonmark.org/t/how-should-footnotes-behave/1106) as linked above.

---

<div class="post-metadata">

### Author: ![mlgtechuser](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mlgtechuser/32/262708_2.png) [@mlgtechuser](https://meta.discourse.org/u/mlgtechuser)
#### Post date: [June 17, 2022, 5:50am UTC](https://meta.discourse.org/t/extend-footnote-to-include-annotations/230857/4 "2022-06-17T05:50:47Z")

</div>

Agreed, Matthew. And thank you for highlighting the references. Unfortunately, those references are a bit light and I found no better topics here. Maybe **[CommonMark.org](http://CommonMark.org)** has more recent discussion.

> [@mattdm](#):
>
> best first resolved as part of the CommonMark spec

_Resolved_, yes. I first need to work out what and how to present the situation to CommonMark, though. I posted here since other user input will inform the discussion when the topic is forwarded to CommonMark. Discourse is also our immediate “parent” as users and Sam et al will probably want to know how well the extension implementation of footnotes is working for its users.

So please share your thoughts–and make it fast because there’s a ‘garbage disposal’ on this topic that eats posts after 30 days!

---

<div class="post-metadata">

### Author: ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)
#### Post date: [October 26, 2025, 10:36am UTC](https://meta.discourse.org/t/extend-footnote-to-include-annotations/230857/5 "2025-10-26T10:36:50Z")

</div>

> [@mlgtechuser](#):
>
> It looks great in the editor’s Preview Pane, but doesn’t render as expected in the thread.

@mlgtechuser, if I’ve correctly understood, this may be an example of:

> [@Footnotes are not horizontally scrollable, yet their CSS does not force \`white-space: pre-wrap; word-wrap: break-word;\`](https://meta.discourse.org/t/footnotes-are-not-horizontally-scrollable-yet-their-css-does-not-force-white-space-pre-wrap-word-wrap-break-word/386727/1):
>
> [`forums.opensuse.org/t/187090/13`](https://forums.opensuse.org/t/how-to-perform-an-offline-update/187090/13)

If you try [`discussion.fedoraproject.org/new-topic`](https://discussion.fedoraproject.org/new-topic) instead, and enter:

```Markdown
[^1]

[^1]: Content

```

…you may see a more expected result, for the footnote renders as a bibiliographic citation (rather than an inline box, solely visible upon selection of its inline, numeric reference).

Otherwise, if you’re requesting that both modes coexist, thereby rendering some “annotations” bibliographic footnotes appended to the end of the document, with others remaining inline, I wholeheartedly agree that that would be phenomenal.
