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
94721309096560["mktext.MkText"]
94721308848336["mknode.MkNode"]
94721311766592["node.Node"]
140564252373184["builtins.object"]
94721308848336 --> 94721309096560
94721311766592 --> 94721308848336
140564252373184 --> 94721311766592
/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 }}
"""