Skip to content

Footnotes implementation#78

Open
ralsina wants to merge 14 commits intoicyleaf:masterfrom
ralsina:footnotes
Open

Footnotes implementation#78
ralsina wants to merge 14 commits intoicyleaf:masterfrom
ralsina:footnotes

Conversation

@ralsina
Copy link
Contributor

@ralsina ralsina commented Mar 7, 2025

This is, AFAIK a full implementation of footnotes as per the specs we have on the repo.

@trafico-bot trafico-bot bot added the 🚧 WIP Still work-in-progress, please don't review and don't merge label Mar 7, 2025
@icyleaf icyleaf mentioned this pull request Mar 9, 2025
7 tasks
@ralsina ralsina force-pushed the footnotes branch 2 times, most recently from d9a392d to ac17b63 Compare March 13, 2025 23:21
@ralsina ralsina changed the title WIP: Footnotes implementation Basic Footnotes implementation Mar 13, 2025
@trafico-bot trafico-bot bot added 🔍 Ready for Review Pull Request is not reviewed yet and removed 🚧 WIP Still work-in-progress, please don't review and don't merge labels Mar 13, 2025
@ralsina ralsina marked this pull request as ready for review March 14, 2025 17:39
@nobodywasishere
Copy link
Collaborator

If this is in a stable place, I'm fine to merge this now and sort out the issues in followup PRs.

@ralsina
Copy link
Contributor Author

ralsina commented May 6, 2025

It implements some basic cases and doesn't seem to break anything at least :-)

@ralsina
Copy link
Contributor Author

ralsina commented Feb 15, 2026

I am working now on finishing this.

@ralsina ralsina changed the title Basic Footnotes implementation Footnotes implementation Feb 15, 2026
@ralsina
Copy link
Contributor Author

ralsina commented Feb 16, 2026

Weird, tests were passing before, fixing.

- Fix bug where footnote hash iteration used underscore placeholder but referenced outer scope 'title' variable
- Use explicit 'footnote_title' variable to avoid shadowing and properly capture hash keys
- Replace deprecated @options.gfm with @options.gfm?
- Replace deprecated URI.encode with encode_id_component helper for footnote IDs

This fixes 4 test failures related to undefined footnote references and
nested footnotes, and resolves 5 deprecation warnings.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ralsina
Copy link
Contributor Author

ralsina commented Feb 16, 2026

Sigh, I asked the LLM to fix ameba warnings and it choose wrong on every one of them. Fixed now :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔍 Ready for Review Pull Request is not reviewed yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants