Skip to content

Why does TaskList generate a disabled checkbox? #640

Answered by colinodell
fkoji asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this behavior is expected and intentional: https://github.com/thephpleague/commonmark/blob/1.5.7/src/Extension/TaskList/TaskListItemMarkerRenderer.php#L39

This aligns with other Markdown parsers (like Markdig) which have the ability to render checkboxes but don't offer functionality to update the Markdown contents when the checkboxes are clicked. Once #511 is implemented I'd feel comfortable making these non-disabled by default.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by colinodell
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question General questions about the project or usage
2 participants
Converted from issue

This discussion was converted from issue #589 on June 12, 2021 13:57.