Skip to content

Container nodes

Node Docstrings Markdown extensions
:mdi-format-quote-open: MkBlockQuote BlockQuote node.
:octicon-info-16: MkAdmonition Admonition info box. admonition, pymdownx.details, pymdownx.superfences
:mdi-database: MkContainer A node containing other MkNodes.

This is the concrete implementation with list-based storage.
Can be used directly or as a base class.
Nodes added to a container are automatically re-parented.
:mdi-code-json: MkCode Class representing a Code block. pymdownx.highlight, pymdownx.superfences
:octicon-list-unordered-24: MkList Node for showing a formatted list. def_list
:octicon-table-24: MkTable Class representing a formatted table. tables
:octicon-table-24: MkHtmlTable Class representing a html table.

Compared to MkTable, this will end up with a more verbose output,
but it can contain more complex Markdown in cells.
:mdi-library: MkDefinitionList Node for definition lists. def_list
:octicon-info-16: MkDetailsBlock Pymdownx-based details box. pymdownx.blocks.details
:octicon-code-16: MkHtmlBlock PyMdown-based Html block. Can be used to show raw content. pymdownx.blocks.html
:mdi-tab: MkTabbedBlocks PyMdown Block Extension Tab. pymdownx.blocks.tab
:mdi-tab: MkTabbed PyMdown-based Tab container. pymdownx.tabbed, pymdownx.superfences
:mdi-alert-box: MkAnnotations Node containing a list of MkAnnotations. pymdownx.superfences
:octicon-list-ordered-16: MkFootNotes Node containing a list of MkFootNotes. footnotes
:mdi-view-grid: MkShowcase Node for showing a html-based image grid.

Manages row / column positioning.
Mainly intended for MkCards, but can also include other markdown (there are limits
though.)
When adding MkCards, then addtional CSS is required.
:mdi-library: MkTaskList Node for task lists. pymdownx.tasklist
Page info
Code for this section
mknodes.manual.nodes_section._
@nav.route.nav("Container nodes")
def _(nav: mk.MkNav) -> None:
    page = nav.add_page(is_index=True, hide="toc")
    page += create_section_for_nodes(nav, CONTAINER_NODES)
    page.created_by = create_section_for_nodes
Resources
Resources(css=[],
          markdown_extensions={'tables': {}},
          plugins=[],
          js=[],
          assets=[],
          packages=[])
Metadata
created:
  source_filename: /home/runner/work/mknodes/mknodes/src/mknodes/manual/nodes_section.py
  source_function: _
  source_line_no: 140
hide:
- toc
title: Container nodes