Adding to MkPages¶
Note
You can add other MkNodes to a page sequentially.
Adding strings also works, they get converted to MkText nodes.
…and text starting with # will become a MkHeader.¶
Every MkPage has a MkFootNotes node built-in[1].
Page info
Code for this page
mknodes.manual.page_section._¶
34@nav.route.page("Adding to MkPages", hide="toc", status="new")
35def _(page: mk.MkPage) -> None:
36 page += mk.MkAdmonition("You can add other MkNodes to a page sequentially.")
37 page += "Adding strings also works, they get converted to MkText nodes."
38 page += "### ...and text starting with # will become a MkHeader."
39 page += "Every MkPage has a MkFootNotes node built-in[^1]."
40 page.footnotes[1] = "Super cool, right?"
Resources
Resources(css=[],
markdown_extensions={},
plugins=[],
js=[],
assets=[],
packages=[])
Metadata
created:
source_filename: /home/runner/work/mknodes/mknodes/src/mknodes/manual/page_section.py
source_function: _
source_line_no: 34
hide:
- toc
status: new
title: Adding to MkPages