You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would suggest two improvements to the tasklists plugin:
Don't add disabled="disabled" to the checkboxes. This makes it so you can't click them. But if you are going to add a list of check boxes to a page, it would be useful if people can actually click them. Since this might not be desired in all cases, a configuration option might be useful, or some syntax to allow or disallow it.
Add style="list-style: none; styling to the ul. This prevents the bullet point from appearing. This is how it works on GitHub, for instance
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Thoughts on the disabled thing? I'm not sure how people are using this plugin if that would break someone's use-case, like if they want to show a static set of checked and unchecked boxes. For my use-case, I want to create a checklist for contributors so I want it to be checkable.
Another thing I've noticed with GitHub is that the checkboxes themselves act as the bullet points. This means that all the text in that bullet is aligned to the right of the checkbox (I've converted the OP items to checkboxes to demonstrate this). The checkboxes from this extension don't work like this. They just render as a checkbox inline with the text.
I'm not clear yet what the difference is here, if it's the structure of the HTML or some CSS or something else.
Activity
welcome commentedon Jan 14, 2023
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! 🎉
chrisjsewell commentedon Jan 14, 2023
Cheers, happy for a PR 😄
asmeurer commentedon Jan 14, 2023
Thoughts on the disabled thing? I'm not sure how people are using this plugin if that would break someone's use-case, like if they want to show a static set of checked and unchecked boxes. For my use-case, I want to create a checklist for contributors so I want it to be checkable.
asmeurer commentedon Jan 14, 2023
Not sure I understand how markdown-it works. I thought this would fix the second bullet point:
But it doesn't seem to work.
asmeurer commentedon Jan 14, 2023
I guess there already is an
enabledflag for the first point https://mdit-py-plugins.readthedocs.io/en/latest/#task-lists. I can't tell how I'm supposed to translate that to a myst conf.py flag, though.chrisjsewell commentedon Jan 15, 2023
ah well that's different, for that we can add a configuration in myst-parser
chrisjsewell commentedon Jan 15, 2023
executablebooks/MyST-Parser#686
asmeurer commentedon Jan 17, 2023
The second point about the bullet points can be worked around by adding
to the custom.css.
asmeurer commentedon Jan 17, 2023
Another thing I've noticed with GitHub is that the checkboxes themselves act as the bullet points. This means that all the text in that bullet is aligned to the right of the checkbox (I've converted the OP items to checkboxes to demonstrate this). The checkboxes from this extension don't work like this. They just render as a checkbox inline with the text.
I'm not clear yet what the difference is here, if it's the structure of the HTML or some CSS or something else.
asmeurer commentedon Jan 17, 2023
Figured it out. For the correct wrapping you need
Don't know if these CSS things should be done here or fixed in the individual themes.