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
94270155566640["mktext.MkText"]
94270153212096["mknode.MkNode"]
94270159179120["node.Node"]
139968908570848["builtins.object"]
94270153212096 --> 94270155566640
94270159179120 --> 94270153212096
139968908570848 --> 94270159179120
/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 }}
"""