skip to navigation
skip to content

html2rest 0.2.2

Convert HTML to restructuredText

Convert HTML to restructuredText. Very limited, but intended as a “50%” tool, to be followed by manual editing.


easy_install html2rest


pip install html2rest


From the command line:

html2rest > templating.rst

Or programmatically:

from html2rest import html2rest

stream = StringIO()

html2rest('<ul><li>one</li><li>two</li></ul>', writer=stream)

Specify input encoding (default is ‘utf8’) and a preprocessor:

def strip_chars(html):
    return html.replace('¶', '')

html2rest(html, writer=stream, encoding='latin1', preprocess=strip_chars)
File Type Py Version Uploaded on Size
html2rest-0.2.2.tar.gz (md5) Source 2012-09-09 5KB (md5) Source 2012-09-09 6KB
  • Downloads (All Versions):
  • 2 downloads in the last day
  • 91 downloads in the last week
  • 542 downloads in the last month