def __init__(self, rst, dedent=True, **kwargs):
self.dedent = dedent<EOL>if dedent:<EOL><INDENT>rst = dedent_string(rst)<EOL><DEDENT>self.rst = rst<EOL>self.html = rst2html(rst, **kwargs)<EOL>
Convert reStructuredText to HTML.

If ``dedent`` is true then ``rst`` is passed through
``dedent_string``.

Any other keyword arguments are passed on to the writer.