markdown-it-task-checkbox
markdown-it-task-checkbox copied to clipboard
Indeterminate Checkbox
There's no means of creating an incomplete/indeterminate checkbox.
Because indeterminate can't be generated with straight html, it might not be feasible.
Documentation around Indeterminate Checkboxes
Ideally, the Markdown side might be represented as [-], then after the HTML is rendered, using JS for post-processing into indeterminate.
This will likely never be available because of this W3C thread. And this library prepares HTML, and does not directly modify the UI.
Because indeterminate can't be defined as an HTML attribute, any rendered HTML would exclude any indeterminate nature.
https://github.com/linsir/markdown-it-task-checkbox/issues/10#issuecomment-544232544
Yet, @shmolf, doesn't https://www.w3schools.com/jsref/dom_obj_checkbox.asp#:~:text=contains%20the%20checkbox-,indeterminate,-Sets%20or%20returns (https://www.w3schools.com/jsref/prop_checkbox_indeterminate.asp#:~:text=uncheck%20the%20checkbox.-,browser%20support,-Property) demonstrate that it is at least de-facto supported?
https://github.com/linsir/markdown-it-task-checkbox/issues/10#issuecomment-544232544
@shmolf, are you aware of https://github.com/whatwg/html/issues/6578#issue-856080891? https://github.com/marktext/marktext/issues/2819#issue-1089926779 is also potentially useful, since it references a GitLab implementation (so that you can start using industry-standard syntax in your documents until this is implemented).