from docutils.core import publish_parts


def do_rst(s):
    """
    Parse the string using the reStructuredText parser from the
    docutils package.

    requires `docutils`_.

    .. _docutils: http://docutils.sourceforge.net/
    """
    parts = publish_parts(source=s, writer_name='html4css1')
    return parts['fragment']