Skip to content

Checkbox cannot be toggled if [x] is lowercase #11046

Closed

Description

@ambevill

Search first

  • I searched and no similar issues were found

What Happened?

A list with [x] (lower case) renders as a checkbox (same as [X]) but cannot be toggled by clicking.

Reproduce the Bug

  1. Enter a block with lower case [x] checkbox, e.g.
- In a checklist:
	* [X] This is a normal checkbox with [X]. It can be toggled.
	* [x] This checkbox accidentally has a lowercase [x]. It cannot be toggled.
  1. Attempt to toggle the checkbox. It does not toggle.

Expected Behavior

Either

  1. Toggle [x] in the same way as [X], or
  2. Do not render [x] as a checkbox

Screenshots

2024-02-25_19h17_05.mp4

Desktop or Mobile Platform Information

Windows 11, Android

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Activity

  1. ambevill commented on Feb 25, 2024

    @ambevill
    Author

    @llcc Thanks for the work you did in b2e0f27! It looks like the pattern matching is case-sensitive, but replace-first has case-insensitive alternatives. If you have a moment to look at this, I think it would be a rather quick fix. (Sorry I can't submit a PR myself---I have zero clojure experience, so I think I'm likely to break something.)

  2. ambevill commented on Feb 25, 2024

    @ambevill
    Author

    This might explain some of the late comments on #3617. Also, #7113 touches related code but is a distinct issue.

  3. added
    parser
    on Feb 26, 2024
  4. added 2 commits that reference this issue on Mar 3, 2024
    c931e89
    94a6042
  5. added a commit that references this issue on Mar 6, 2024
  6. added a commit that references this issue on Mar 6, 2024
    10c18b1
  7. added 2 commits that reference this issue on Oct 1, 2026
    e27c397
    6cc5221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    parser

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions