partial checkbox syntax for markdown
closed
Leangseu Kim
I wish we can support syntax for partial checkbox.
I can be something like
- [-]
Nicolas Giard
marked this post as
closed
Nicolas Giard
marked this post as
under review
Unlikely to be implemented as it can't be rendered via HTML alone and it's a very niche use case.
Qds Soft
Leangseu Kim
By the way, the code provided in the screenshots achieves exactly what you're asking for. Just wrap your checkbox with the tag <inter>:
<inter>
- [x] partial checkbox
</inter>
But you have to disable HTML-Sanitizing for that, which is NOT advisable.
But you could replace the tag <inter> with a <div class="inter">, change the script a little and wrap your checkbox in this tag ...
<div class="inter">
- [x] partial checkbox
</div>
Qds Soft
This is not standard markdown. But wikijs has awesome extesibility features. You could write a simple script doing exactly that.
Andrey Pankov
Qds Soft: Hey, could you please drop a link to wikijs documentation page describing an example how to implement such an extensibility script? Thanks!
Qds Soft
Andrey Pankov: Hi Andrey, unfortunately I couldn't find an official documentation on this.
Here is what I did:
- If you want to add a global script, you can inject some code in the Theme-settings
Qds Soft
- Or you can add scripts on page by page basis: