MkFootNotes
Node containing a list of MkFootNotes.¶
Name | Children | Inherits |
---|---|---|
MkContainer mknodes.basenodes.mkcontainer A node containing other MkNodes. |
graph TD
93860743895744["mkfootnotes.MkFootNotes"]
93860744077920["mkcontainer.MkContainer"]
93860744073616["mknode.MkNode"]
93860744080896["node.Node"]
140589822947552["builtins.object"]
93860744077920 --> 93860743895744
93860744073616 --> 93860744077920
93860744080896 --> 93860744073616
140589822947552 --> 93860744080896
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mkfootnotes/metadata.toml
[metadata]
icon = "octicon:list-ordered-16"
name = "MkFootNotes"
[requirements.extension.footnotes]
[examples.regular]
title = "Regular"
python = """
node = MkFootNotes()
page += "The MkFootNotes node aggregates footnotes[^1]."
node[1] = r"Footnotes are numbered, can be set via `__setitem__`."
node[2] = r"They can also get nested[^3]."
node[3] = mk.MkAdmonition("And they can also contain other Markdown.")
node
"""
[fragments.footnote]
template = """
[^{{ footnote.num }}]
{{ node.items | join("\n") | indent(first=True) }}
"""
[output.markdown]
template = """
{{ node.items | sort(attribute="num") | join }}
"""
[output.rst]
template = """
.. rubric:: Footnotes
{% for item in node.items | sort(attribute="num") %}
.. {{ item }}
"""