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
94596170177680["mktext.MkText"]
94596169136704["mknode.MkNode"]
94596171773984["node.Node"]
139930746687680["builtins.object"]
94596169136704 --> 94596170177680
94596171773984 --> 94596169136704
139930746687680 --> 94596171773984
/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 }}
"""