Skip to content

fix: hide bullet markers on task list checkbox items#78

Draft
adamatan wants to merge 1 commit intojfernandez:mainfrom
adamatan:fix/task-list-bullets
Draft

fix: hide bullet markers on task list checkbox items#78
adamatan wants to merge 1 commit intojfernandez:mainfrom
adamatan:fix/task-list-bullets

Conversation

@adamatan
Copy link
Copy Markdown

@adamatan adamatan commented Apr 3, 2026

Summary

  • GFM task list items (- [ ], - [x]) render with both a bullet disc and a checkbox, resulting in a cluttered appearance
  • Adds CSS using li:has(> input[type="checkbox"]) to hide the bullet on checkbox items
  • Adds a small margin-inline-end on checkboxes for spacing between the box and label text

Before

before

• ☐ Plan the project
• ☑ Set up the repository

After

☐ Plan the project
☑ Set up the repository

Example markdown

- [ ] Plan the project
- [x] Set up the repository
- [ ] Write tests

Test plan

  • Serve a markdown file containing - [ ] and - [x] task list items
  • Verify checkboxes render without bullet markers
  • Verify regular unordered lists still show bullets
  • Test across light and dark themes

🤖 Generated with Claude Code

GFM task lists render checkbox items with both a bullet marker and a
checkbox. For example, this markdown:

```markdown
- [ ] Plan the project
- [x] Set up the repository
- [ ] Write tests
```

produces `<li><input type="checkbox"> ... </li>` elements that display
a bullet disc alongside the checkbox, resulting in a cluttered
appearance:

  • ☐ Plan the project
  • ☑ Set up the repository

This adds a CSS rule using `li:has(> input[type="checkbox"])` to set
`list-style: none` on task list items, so only the checkbox is shown.
A small inline-end margin is also added to the checkbox for spacing
between the box and the label text.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@adamatan adamatan marked this pull request as draft April 3, 2026 03:34
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.

1 participant