MkTaskList
Node for task lists.¶
Example: Regular¶
- Item 1
- Item 2
Name | Children | Inherits |
---|---|---|
MkContainer mknodes.basenodes.mkcontainer A node containing other MkNodes. |
graph TD
94721311963776["mktasklist.MkTaskList"]
94721311697232["mkcontainer.MkContainer"]
94721308848336["mknode.MkNode"]
94721311766592["node.Node"]
140564252373184["builtins.object"]
94721311697232 --> 94721311963776
94721308848336 --> 94721311697232
94721311766592 --> 94721308848336
140564252373184 --> 94721311766592
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mktasklist/metadata.toml
[metadata]
icon = "mdi:library"
name = "MkTaskList"
[requirements.extension."pymdownx.tasklist"]
[examples.regular]
title = "Regular"
jinja = """
{{ [_mk.MkTask(True, "Item 1"), _mk.MkTask(True, "Item 2")] | MkTaskList }}
"""
[fragments]
task = """
- [{{ "x" if node.value else " " }}] {{ node.items | join(node.block_separator) | indent }}
"""
[output.markdown]
template = """
{{ node.items | join(node.block_separator) }}
"""