MkText
Class for any Markup text.¶
Description
All classes inheriting from MkNode can get converted to this Type.
Example: Regular¶
Bases: MkNode
__init__
¶
Name | Children | Inherits |
---|---|---|
MkInclude mknodes.templatenodes.mkinclude Node to include the text of other Markdown files / MkNodes. |
||
MkChangelog mknodes.templatenodes.mkchangelog Node for a git-based changelog (created by git-changelog). |
||
MkLicense mknodes.templatenodes.mklicense Node to show a license. |
||
MkLlm mknodes.templatenodes.mkllm Node for LLM-based text generation. |
Name | Children | Inherits |
---|---|---|
MkNode mknodes.basenodes.mknode Base class for everything which can be expressed as Markup. |
graph TD
94272697805536["mktext.MkText"]
94272697820320["mknode.MkNode"]
94272697777776["node.Node"]
139836355973312["builtins.object"]
94272697820320 --> 94272697805536
94272697777776 --> 94272697820320
139836355973312 --> 94272697777776
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mktext/metadata.toml
[metadata]
icon = "mdi:text"
name = "MkText"
group = "base"
[examples.regular]
title = "Regular"
jinja = """
{{ "Some text" | MkText }}
"""
# [examples.from_url]
# title = "From URL"
# jinja = """
# {{ mk.MkText.from_url("https://raw.githubusercontent.com/phil65/mknodes/main/README.md") }}
# """
[output.markdown]
template = """
{{ node.text }}
"""