Second occorrenza di nota a piè di pagina con espansione inline non può essere espansa

Using the footnote plugin v0.1 with settings “enable markdown footnotes” and “display footnotes inline” enabled on discourse 2.6.0 beta6 (66ecefba52) :

  • when the same inline footnote is used 2 times in a post, the first one can be clicked and expands to show the footnote, but the second does not (nor does the third…).
  • reproduced on my site with the minimal example provided on the Discourse footnote post :

We are our choices. [1]
A lot of interesting words
He really said it. [1:1]

  • Tried to reproduce on try.discourse.org but the footnote plugin does not seem available

Can someone reproduce as well or is there a problem with my site ?


  1. We are our choices.
    Sartre, some time
    some day
    in the past ↩︎ ↩︎

1 Mi Piace

I’ve tested that example on my local dev site (running the latest Discourse code with the Chrome browser.) I’m finding that the second footnote is positioned either at the bottom of the page, or off the page.

If I try inserting a unique footnote between the two duplicate footnotes, the second of the duplicate footnotes will display the content of the unique footnote if it is clicked after having clicked the unique footnote. Example markup for that issue:

We are our choices. [^sartre]

A lot of interesting words

Second footnote test [^second]

He really said it. [^sartre]

[^sartre]: We are our choices.
Sartre, some time
some day
in the past

[^second]: this is the content of the second footnote

2 Mi Piace

Mi sono imbattuto in questo oggi, cercando di essere spiritoso.[1]


  1. Puoi leggere questo, ma non puoi espandere questo[2]. ↩︎

  2. Che peccato! Questo è esilarante. ↩︎

Immagino che questo Discourse non utilizzi il plugin per le note a piè di pagina.

Quindi… deduco che dipenda da me se voglio che funzioni. È così? Qualcuno può darmi una mano?

Il primo passo è capire se funziona qui:

Lo stiamo semplicemente riconfezionando, è possibile che sia già stato migliorato nell’ultima versione.

1 Mi Piace

Finalmente ho avuto tempo di esaminarlo. Grazie per il suggerimento.

markdown-it e markdown-it-footnote si comportano come mi aspettavo. L’ho confermato con alcuni semplici test unitari.

Il problema sembra sorgere quando provo a fare clic sulla nota a piè di pagina in un argomento. Ecco come si presenta per me.

Per prima cosa, provo a fare clic su “…” nella nota a piè di pagina nidificata, che ricarica la pagina; quindi provo a fare clic sul collegamento “[2]” nella nota a piè di pagina nidificata, per cui non esiste un’ancora HTML corrispondente.

Cosa posso fare al riguardo?

Molte grazie.

1 Mi Piace