Skip to content

Fix: Rewrite checkbox string extraction to be case insensitive#210

Merged
andybeet merged 1 commit into
devfrom
fix/restore-checkbox-parsing
Apr 10, 2026
Merged

Fix: Rewrite checkbox string extraction to be case insensitive#210
andybeet merged 1 commit into
devfrom
fix/restore-checkbox-parsing

Conversation

@BBeltz1

@BBeltz1 BBeltz1 commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

Justification

Github changed its internal markdown language such that checked boxes now appear as a lowercase [x] instead of a capital [X]. This broke the parsing of checkboxes in issues when building pages. I've used the stringr::regex wrapper function with the argument ignore_case = T to make the parsing case insensitive. This wrapper tells other stringr functions how to treat the pattern argument. In this case, it gives the instruction to treat the pattern as a case insensitive regular expression. The expression we match could change (there is now redundant case insensitivity) but this is a quicker patch for now.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)

Reviewer instructions:

Quick review for proper structure and syntax. There are no changes to pages present here, just the underlying code. All pages will be rebuilt in a subsequent pull request, which will include this fix and the implementation most of the EDAB review feedback. A full rebuild of the book is beyond the scope of this patch.

@BBeltz1 BBeltz1 requested a review from andybeet April 10, 2026 16:35
@andybeet andybeet merged commit 46cb332 into dev Apr 10, 2026
2 checks passed
@andybeet andybeet deleted the fix/restore-checkbox-parsing branch April 10, 2026 16:49
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