I\'m making a framework in which I let developers describe their package using reStructuredText. I want to parse that reStructuredText into HTML so I can show it in a GUI.>
Try something like this:
>>> from docutils.core import publish_string
>>> publish_string("*anurag*", writer_name='html')
publish_string
accepts a strings and outputs a string or you can use publish_parts to get specific parts of html document e.g.
>>> from docutils.core import publish_parts
>>> print publish_parts("*anurag*", writer_name='html')['html_body']
anurag