Package
zope.structuredtext

Consider the following example:

>>> from structuredtext.stng import structurize
>>> from structuredtext.document import DocumentWithImages
>>> from structuredtext.html import HTMLWithImages
>>> from structuredtext.docbook import DocBook

We first need to structurize the string and make a full-blown document out of it:

>>> struct = structurize(structured_string)
>>> doc = DocumentWithImages()(struct)

Now feed it to some output generator, in this case HTML or DocBook:

>>> output = HTMLWithImages()(doc, level=1)
>>> output = DocBook()(doc, level=1)