Why does TaskList generate a disabled checkbox? #640
-
QuestionThe |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. For now, I'm going to use JavaScript to update the attributes. |
Beta Was this translation helpful? Give feedback.
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.