def _convert_doc_content(self, contents): text_output = publish_string(contents, writer=TextWriter()) return text_output