Skip to content

Two small footnotes follow-up fixes#8874

Merged
max-nextcloud merged 2 commits into
mainfrom
fix/footnote_followup
Jul 14, 2026
Merged

Two small footnotes follow-up fixes#8874
max-nextcloud merged 2 commits into
mainfrom
fix/footnote_followup

Conversation

@mejo-

@mejo- mejo- commented Jul 14, 2026

Copy link
Copy Markdown
Member

📝 Summary

  • fix(footnotes): return early in footnotesCleanup plugin without footnotes
  • fix(footnotes): change input rule to [^]

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

🤖 AI (if applicable)

  • The content of this PR was partly generated using AI tools
  • The AI-generated content was reviewed, comprehended and tested by a human

mejo- added 2 commits July 14, 2026 09:59
…otes

Avoids traversing through the whole document each time for documents
without footnotes.

Signed-off-by: Jonas <jonas@freesources.org>
This avoids emphasizing custom labels that we don't display in the Text
UI anyway. The label will be auto-generated on insert, just like it's
done when adding a footnote via menubar entry or keyboard shortcut.

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- self-assigned this Jul 14, 2026
@mejo- mejo- added the bug Something isn't working label Jul 14, 2026
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Jul 14, 2026
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Jul 14, 2026

@max-nextcloud max-nextcloud left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me.
I'd rather avoid the second loop for the early return. Proposing that as a separate PR against this.

@max-nextcloud
max-nextcloud merged commit 0174f0a into main Jul 14, 2026
72 of 74 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ☑️ Done in 📝 Productivity team Jul 14, 2026
@max-nextcloud
max-nextcloud deleted the fix/footnote_followup branch July 14, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

2 participants