Skip to content

Allow underscore [_] for unchecked task list items#386

Open
dereuromark wants to merge 1 commit into
jgm:mainfrom
dereuromark:allow-underscore-unchecked-task
Open

Allow underscore [_] for unchecked task list items#386
dereuromark wants to merge 1 commit into
jgm:mainfrom
dereuromark:allow-underscore-unchecked-task

Conversation

@dereuromark

@dereuromark dereuromark commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR adds [_] as an alternative marker for unchecked task list items, addressing #305.

The underscore provides a visual representation that looks like an empty box [_] in the source, improving readability especially in editors without monospaced fonts (e.g., mobile apps, browser text areas).

Changes

  • Updated spec in doc/syntax.md to accept [_] alongside [ ] for unchecked items
  • Updated doc/syntax.html to match

Example

- [_] unchecked item with underscore
- [ ] unchecked item with space
- [x] checked item

This change is additive and backward-compatible with existing documents.

Closes #305


Reference impl / demo: https://php-collective.github.io/djot-php/guide/syntax.html#task-lists

The [_] marker provides a visual alternative to [ ] for unchecked task
items, improving readability in editors without monospaced fonts.

Closes jgm#305
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.

Allow underscore in task list to denote unchecked item

1 participant