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.5.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.5.0
File Size Uploaded Provenance Actions
minchin_md_it_fancy_tasklists-1.5.0.tar.gz 6.7 kB Without provenance Details for minchin_md_it_fancy_tasklists-1.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.4 kB

Release files / minchin_md_it_fancy_tasklists-1.5.0.tar.gz

Download URL minchin_md_it_fancy_tasklists-1.5.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
db988ae5ce949e0e314f5f6a116adf1c7abd383482aebd27cc3bf25a28ca935f
BLAKE2b-256 checksum
How to use checksums
d9ee502f84cf3c5efcea8822e3ae2c4c8dd8e3307338ba73ee48bb93d0607efd
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.5.0-py3-none-any.whl

Download URL minchin_md_it_fancy_tasklists-1.5.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e5d8fa0605c65b5ae9ede39b5ac2422e7de5855622c2f193858b33040317742
BLAKE2b-256 checksum
How to use checksums
ca7405ac65301839dcf23ccf236241eb47f73062494c8bd3eaca31d9943e80ee
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.5.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