لا يمكن توسيع الظهور الثاني لحاشية التوسيع المضمن

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)

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)

لقد واجهت هذا اليوم، بمحاولة أن أكون فكاهيًا.[1]


  1. يمكنك قراءة هذا، ولكن لا يمكنك توسيع هذا[2]. ↩︎

  2. يا للأسف! هذا مضحك للغاية. ↩︎

أعتقد أن هذا المنتدى لا يستخدم المكون الإضافي للحواشي السفلية.

إذًا… أستنتج أن الأمر متروك لي إذا كنت أريد أن ينجح هذا. هل هذا صحيح؟ هل يمكن لأي شخص مساعدتي؟

الخطوة الأولى هي معرفة ما إذا كان يعمل هنا:

نحن ببساطة نعيد تغليفه، ومن الممكن أنه تم تحسينه بالفعل في أحدث إصدار.

إعجاب واحد (1)

أخيراً أتيحت لي الفرصة للنظر في هذا. شكراً على الاقتراح.

markdown-it و markdown-it-footnote يتصرفان كما أتوقع. لقد أكدت ذلك ببعض اختبارات الوحدة البسيطة.

تبدو المشكلة عندما أحاول النقر على الحاشية السفلية في موضوع. إليك كيف تبدو بالنسبة لي.

أولاً، أحاول النقر على “…” في الحاشية السفلية المتداخلة، مما يؤدي إلى إعادة تحميل الصفحة؛ ثم أحاول النقر على رابط “[2]” في الحاشية السفلية المتداخلة، والذي لا يوجد له مرساة HTML مقابلة.

ماذا يمكنني أن أفعل حيال هذا؟

شكراً جزيلاً.

إعجاب واحد (1)