from docutils import core
def reST_to_html(source):
settings_overrides = {
'footnote_references': 'superscript',
'auto_id_prefix': 'id-',
'initial_header_level': 3,
'doctitle_xform': False,
}
formatted = core.publish_parts(source,
writer_name='html4css1',
settings_overrides=settings_overrides)
return formatted['body']