docs: def spans(self, container):
          """Recursively yield all the :class:`SingleStyledText` items in this
          mixed-styled text."""
          for child in self.children(container):
              container.register_styled(child)
              for span in child.spans(container):
                  yield span