gotosocial/internal/text
tobi 5fbaf5b7be [feature] Allow anchor href to work for footnotes, use ID prefix to avoid clashes (#4298)
Updates markdown parser + sanitizer to allow footnote anchors to work properly, with appropriate roles. Footnote anchor IDs and backrefs use the status ID as a prefix to avoid clashes, so that footnotes don't break when multiple footnoted statuses are rendered on the same page (eg., in a thread or on the account's home page).

closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4296

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4298
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
2025-06-30 12:56:50 +02:00
..
emojify.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
formatter.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
formatter_test.go [chore] Upgrade to Go 1.24 (#4187) 2025-05-22 12:26:11 +02:00
goldmark_custom_renderer.go [bugfix] Fix no notification if mention edited into status (#4102) 2025-05-04 09:45:10 +00:00
goldmark_parsers.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
goldmark_plaintext.go [chore/bugfix] Deinterface text.Formatter, allow underscores in hashtags (#2233) 2023-09-29 10:39:56 +02:00
markdown.go [feature] Allow anchor href to work for footnotes, use ID prefix to avoid clashes (#4298) 2025-06-30 12:56:50 +02:00
markdown_test.go [feature] Allow anchor href to work for footnotes, use ID prefix to avoid clashes (#4298) 2025-06-30 12:56:50 +02:00
minify.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
normalize.go [bugfix] Extend parser to handle more non-Latin hashtags (#3700) 2025-01-31 11:42:55 +01:00
plain.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
plain_test.go [chore] Rewrite all remaining Github links 2025-04-27 13:40:22 +02:00
sanitize.go [feature] Allow anchor href to work for footnotes, use ID prefix to avoid clashes (#4298) 2025-06-30 12:56:50 +02:00
sanitize_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
substring.go [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
substring_test.go [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
util.go [bugfix] Extend parser to handle more non-Latin hashtags (#3700) 2025-01-31 11:42:55 +01:00