markdown-it-task-checkbox icon indicating copy to clipboard operation
markdown-it-task-checkbox copied to clipboard

Indeterminate Checkbox

Open shmolf opened this issue 6 years ago • 5 comments
trafficstars

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.

shmolf avatar Apr 25 '19 15:04 shmolf

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.

shmolf avatar Oct 20 '19 08:10 shmolf

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?

RokeJulianLockhart avatar Feb 01 '24 15:02 RokeJulianLockhart

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).

RokeJulianLockhart avatar May 15 '24 10:05 RokeJulianLockhart