<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def with_text(self, text, markdown=None):
        '''Set text content.

        :param text: text content.
        :param markdown: is markdown? Defaults to ``False``.
        '''
        self._text = text
        self._markdown = markdown or False

        return self