0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 00:54:21 +08:00
discourse/plugins/footnote
chapoi ea6ffc4852
UX: prevent nested footnotes (#41325)
Nested footnotes do not work, but still render as if they do.
This commit strips out any nested footnotes, and pretends they aren't
there.

| Then | Now |
|--------|--------|
| <img width="437" height="106" alt="CleanShot 2026-07-01 at 11 39 03"
src="https://github.com/user-attachments/assets/1bb915c4-d63d-438f-a51b-a5e246be3dcf"
/> | <img width="325" height="103" alt="CleanShot 2026-07-01 at 14 49
20"
src="https://github.com/user-attachments/assets/b74594ab-84dc-437c-bea5-089aa72178e0"
/> |

Also deleted old CSS to hide the `footnote-backref `, since these are no
longer rendered in the inline-footnote at all.

---------

Co-authored-by: David Taylor <david@taylorhq.com>
2026-07-02 19:55:10 +02:00
..
assets UX: prevent nested footnotes (#41325) 2026-07-02 19:55:10 +02:00
config I18N: Update translations (#41287) 2026-06-30 15:45:46 +02:00
spec DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00
test/javascripts/acceptance UX: prevent nested footnotes (#41325) 2026-07-02 19:55:10 +02:00
package.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00
plugin.rb DEV: Remove obsolete register_svg_icon checks (#35067) 2025-09-30 15:51:44 +02:00
README.md
tsconfig.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00

Discourse footnotes plugin

https://meta.discourse.org/t/discourse-footnote/84533

Official footnotes Discourse plugin

Based off: github.com/markdown-it/markdown-it-footnote