MkBlockQuote
BlockQuote node.¶
Bases: MkContainer
| Name | Children | Inherits |
|---|---|---|
| MkContainer mknodes.basenodes.mkcontainer A node containing other MkNodes. |
graph TD
94396149702176["mkblockquote.MkBlockQuote"]
94396150332256["mkcontainer.MkContainer"]
94396150626816["mknode.MkNode"]
94396150902384["node.Node"]
140181802719712["builtins.object"]
94396150332256 --> 94396149702176
94396150626816 --> 94396150332256
94396150902384 --> 94396150626816
140181802719712 --> 94396150902384
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mkblockquote/metadata.toml
[metadata]
icon = "mdi:format-quote-open"
name = "MkBlockQuote"
[examples.regular]
title = "Regular"
jinja = """
{{ "Some text" | MkBlockQuote }}
"""
[examples.nested]
title = "Nested"
description = "We can also nest blocks, they will adjust their delimiters automatically."
jinja = """
{{ "Nested!" | MkBlockQuote | MkBlockQuote }}
"""
[output.markdown]
template = """
{{ node.items | join(node.block_separator) | indent(width="> ", first=True) | rstrip("\n") }}
"""
# [output.html]
# template = """
# <blockquote>
# {{ node.items | join(node.block_separator) }}
# </blockquote>
# """
[output.rst]
template = """
{{ node.items | join(node.block_separator) | indent(width=" ", first=True) | rstrip("\n") }}
"""
| mknodes.basenodes.mkblockquote.MkBlockQuote | |
|---|---|