def restructuredtext(text, **kwargs):
from docutils import core<EOL>parts = core.publish_parts(source=text,<EOL>writer_name='<STR_LIT>',<EOL>**kwargs)<EOL>return parts['<STR_LIT>']<EOL>
Applies reStructuredText conversion to a string, and returns the
HTML.