Skip to main content

Fancy Tasklists for Markdown-IT-Py

This is a plugin for the Python implementation of Markdown-IT (a CommonMark parser) that provides “fancy” tasklists (or checkboxes).

In particular, it allows you to use (almost) any character to “check” the checkbox, and then, through the use of CSS, change the displayed checkbox. Sample CSS is included. (If the character you want to use doesn’t currently work, please submit a Pull Request to add it!)

Example usage:

>>> from markdown_it import MarkdownIt
>>> from minchin.md_it.fancy_tasklists import fancy_tasklists_plugin
>>> md = MarkdownIt().use(fancy_tasklists_plugin)
>>> md.render("- [?] question mark")
'<ul class="contains-task-list">\n<li class="task-list-item"><input class="task-list-item-checkbox" checked="checked" disabled="disabled" type="checkbox" data-task="?" /><span data-task="?"></span> question mark</li>\n</ul>\n'
>>> md.render("- [ ] empty")
'<ul class="contains-task-list">\n<li class="task-list-item"><input class="task-list-item-checkbox" disabled="disabled" type="checkbox" data-task=" " /><span data-task=" "></span> empty</li>\n</ul>\n'

This is inspired by my use of Obsidian, where many fancy checkboxes are provided by many themes. This seems to have come through implementing things like Bullet Journal in Obsidian. What brought me to create this was a desire to create a Pelican site out of my Markdown Obsidian notes.

This doesn’t include the CSS to change the display of the checkboxes to “fancy”; if you need example code, there is some in my Pelican theme, seafoam (see custom-checkboxes.less).

Fancy Checkboxes, using Seafoam theme

Tests can be run using pytest.

Metadata

Release files for minchin.md-it.fancy-tasklists 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minchin.md-it.fancy-tasklists 1.4.0
File Size Uploaded Provenance Actions
minchin_md_it_fancy_tasklists-1.4.0.tar.gz 6.7 kB Without provenance Details for minchin_md_it_fancy_tasklists-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for minchin.md-it.fancy-tasklists 1.4.0
File Interpreter ABI Platform Actions
minchin_md_it_fancy_tasklists-1.4.0-py3-none-any.whl Python 3 none any Details for minchin_md_it_fancy_tasklists-1.4.0-py3-none-any.whl

Total release size: 12.3 kB

Release files / minchin_md_it_fancy_tasklists-1.4.0.tar.gz

Download URL minchin_md_it_fancy_tasklists-1.4.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e56af35b9f61b4e24e33c7708d6362a323c11e28514a08b6bd7632fed3a96f76
BLAKE2b-256 checksum
How to use checksums
110b24fa7fe02345b74873a66ff0fbde18f95ee3e23b1da16d82da8a755a90b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / minchin_md_it_fancy_tasklists-1.4.0-py3-none-any.whl

Download URL minchin_md_it_fancy_tasklists-1.4.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd417f1ecc8914d7ad2bb383b8bf59d6b1c6399985dd9e8154be6b8db0cf5308
BLAKE2b-256 checksum
How to use checksums
1b2dee56b16e401ec1ebfc71a4d4829d36a1b55a36567f18bfc7f324d55709bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for minchin.md-it.fancy-tasklists 1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page