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
94272695543920["mktasklist.MkTaskList"]
94272697822880["mkcontainer.MkContainer"]
94272697820320["mknode.MkNode"]
94272697777776["node.Node"]
139836355973312["builtins.object"]
94272697822880 --> 94272695543920
94272697820320 --> 94272697822880
94272697777776 --> 94272697820320
139836355973312 --> 94272697777776
/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) }}
"""