Tasklist checkboxes inside a table #2305
-
Dear all, is it possible to use the Tasklist checkboxes inside a table ?
which gives :
Or
which gives
and have it shown as outside the table, i.e.
? Or is the only option something like
which shows as
? Finally,
which is presented as
(last two examples taken from https://stackoverflow.com/a/47344640/1172302) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@NikosAlexandris Python Markdown won't parse Markdown in what it considers block HTML elements unless they are at the root level of the document and you use the The short answer is But fear not, there are ways to do what you want. I'm going highlight the easiest ways to do what you want. You can add classes and additional styling to manipulate the look. Raw HTMLIf you absolutely want lists, and real HTML checkboxes, you can do this with raw HTML. You may also want to style them so the user can't toggle them, but I leave that up to you. ### Raw HTML
| What ? | To Do|
|--------------|-------------|
| <input type="checkbox"> Task 1 | Something|
| <input type="checkbox" checked="checked"> Done | Nothing |
| <input type="checkbox"> Task 2 | |
| <input type="checkbox" checked="checked"> Done 2| |
| Task | Time required | Assigned to | Current Status | Finished |
|----------------|---------------|---------------|----------------|-----------|
| Object Cache | > 5 hours | | in progress | <ul><li><input type="checkbox" checked="checked"> item1</li><li><input type="checkbox"> item2</li></ul>
| Object Cache | > 5 hours | | in progress | <ul><li><input type="checkbox" checked="checked"> item1</li><li><input type="checkbox"> item2</li></ul> Raw HTML and EmojiIf we don't explicitly need lists, let's cut down on the HTML tags and use Emoji using ### Emoji
| What ? | To Do|
|--------------|-------------|
| :green_square: Task 1 | Something|
| :white_check_mark: Done | Nothing |
| :green_square: Task 2 | |
| :white_check_mark: Done 2| |
| Task | Time required | Assigned to | Current Status | Finished |
|----------------|---------------|---------------|----------------|-----------|
| Object Cache | > 5 hours | | in progress | :white_check_mark: item1<br>:green_square: item2
| Object Cache | > 5 hours | | in progress | :white_check_mark: item1<br>:green_square: item2 Combined SolutionYou absolutely want lists, but like using the emoji? Okay, let's combine them. ### Raw HTML and Emoji
| What ? | To Do|
|--------------|-------------|
| :green_square: Task 1 | Something|
| :white_check_mark: Done | Nothing |
| :green_square: Task 2 | |
| :white_check_mark: Done 2| |
| Task | Time required | Assigned to | Current Status | Finished |
|----------------|---------------|---------------|----------------|-----------|
| Object Cache | > 5 hours | | in progress | <ul><li>:white_check_mark: item1</li><li>:green_square: item2</li></ul>
| Object Cache | > 5 hours | | in progress | <ul><li>:white_check_mark: item1</li><li>:green_square: item2</li></ul> |
Beta Was this translation helpful? Give feedback.
Well, I unfortunately don't have any. My extensions work within the confines of Python Markdown, and I can't write custom extensions for everyone's cases.
Sure, for instance the checkmark icon that Material uses can be used via emoji with
:material-checkbox-marked-circle:
and the progress one is:material-progress-question:
. You can search supported icons/emoji here: https://squidfunk.github.io/mkdocs-material/reference/icons-emojis/?h=emoji.You can choose ho…