Skip to content

chore(refactor): loop over possible footnotes once#8876

Merged
mejo- merged 1 commit into
mainfrom
fix/footnote_followup_alternative
Jul 14, 2026
Merged

chore(refactor): loop over possible footnotes once#8876
mejo- merged 1 commit into
mainfrom
fix/footnote_followup_alternative

Conversation

@max-nextcloud

@max-nextcloud max-nextcloud commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

I initially cached the referenceLabels in case there are multiple footnotes nodes.
But that increased complexity quite a bit and seems like an unneccessary optimization.

Base automatically changed from fix/footnote_followup to main July 14, 2026 08:55
Cache the `referenceLabels` so we do not need to loop over all descendants twice.

Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud
max-nextcloud force-pushed the fix/footnote_followup_alternative branch from 5aea729 to d1b6016 Compare July 14, 2026 09:05

@mejo- mejo- left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much cleaner indeed, thank you ❤️

@mejo-
mejo- merged commit 18b8c60 into main Jul 14, 2026
61 checks passed
@mejo-
mejo- deleted the fix/footnote_followup_alternative branch July 14, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants