MkCritic
MkCritic block.¶
Bases: MkContainer
Name | Children | Inherits |
---|---|---|
MkContainer mknodes.basenodes.mkcontainer A node containing other MkNodes. |
graph TD
94721311938992["mkcritic.MkCritic"]
94721311697232["mkcontainer.MkContainer"]
94721308848336["mknode.MkNode"]
94721311766592["node.Node"]
140564252373184["builtins.object"]
94721311697232 --> 94721311938992
94721308848336 --> 94721311697232
94721311766592 --> 94721308848336
140564252373184 --> 94721311766592
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mkcritic/metadata.toml
[metadata]
icon = "mdi:format-text"
name = "MkCritic"
[requirements.extension."pymdownx.critic"]
[examples.addition]
title = "Addition"
jinja = """
{{ "Type `addition`" | MkCritic(typ="addition") }}
"""
[examples.deletion]
title = "Deletion"
jinja = """
{{ "Type `deletion`" | MkCritic(typ="deletion") }}
"""
[examples.highlight]
title = "Highlight"
jinja = """
{{ "Type `highlight`" | MkCritic(typ="highlight") }}
"""
[examples.comment]
title = "Comment"
jinja = """
{{ "Type `comment`" | MkCritic(typ="comment") }}
"""
[output.markdown]
template = """
{% raw %}{{% endraw %}{{ node.marks[0] }}
{{ node.items | join(node.block_separator) }}
{{ node.marks[1] }}{% raw %}}{% endraw %}
"""