Alternate checkboxes using userSetup.js #576
rubenrivera
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR
I added alternate checkboxes to my digital garden by adding code to
src/helpers/userSetup.js
and some code I found on GitHub. Live demo: https://jardindigital.rubenrivera.mx/taller/alt-checkboxes/alt-checkboxes-overview/Description
It's possible to use Custom Filters (see #77 and #304 ) to replace alternate checkboxes with custom emojis or other text; however, under certain circumstances, using the repository's user customization features might be more convenient. In my case, I'm learning about Eleventy.
I found a GitHub repository with an extract of Kepano's Minimal Theme. It contains a .css file intended to be added to an Obsidian vault. I wondered how to make it work on my digital garden, so I dug into my digital garden code and found that eleventy.js uses the Eleventy plugin
markdown-it-task-checkbox
. I adapted the source code of this plugin, added ajs
file tosrc/helpers
and called it fromsrc/helpers/userSetup.js
Here is an extract (please excuse the excessive comments)
I might need to clean-up my version of
markdown-it-task-checkbox
before sharing it.Beta Was this translation helpful? Give feedback.
All reactions