Document #1: >>> from wikimini.document import * >>> blocks = [] >>> insert_into(blocks, Plain("Paragraph ")) >>> insert_into(blocks, Plain("1\n\nParagraph 2")) >>> # blocks == [Paragraph(...), Paragraph(...)] >>> assert len(blocks) == 2 Document #2: >>> from wikimini.document import * >>> verbatim = Verbatim("") >>> verbatim.append(InlineLink("http://localhost", Plain("Visit here!"))) >>> assert verbatim.text == "Visit here!" Format #1: >>> from wikimini.document import Heading >>> from wikimini.formats import gemtext, as_string >>> as_string(gemtext.Gemtext(None), Heading(1, "Coffee")) '# Coffee\n'