mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 16:22:24 -05:00
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> |
||
|---|---|---|
| .. | ||
| emojify.go | ||
| formatter.go | ||
| formatter_test.go | ||
| goldmark_custom_renderer.go | ||
| goldmark_parsers.go | ||
| goldmark_plaintext.go | ||
| markdown.go | ||
| markdown_test.go | ||
| minify.go | ||
| normalize.go | ||
| plain.go | ||
| plain_test.go | ||
| sanitize.go | ||
| sanitize_test.go | ||
| substring.go | ||
| substring_test.go | ||
| util.go | ||