Python wrapper for Pandoc - the universal document converter
Pyandoc is a simple Python wrapper for the excellent pandoc utility. It allows you to convert the format of text documents by interacting with a
Document object’s attributes. Each supported format is available as a property, and can either read from or written to.
Let’s start with a Markdown document:
doc = pandoc.Document() doc.markdown = ''' # I am an H1 Tag * bullet point * more points * point with [link](http://kennethreitz.com)! '''
Now let’s convert that into a ReST document:
>>> print doc.rst I am an H1 Tag ============== - bullet point - more points - point with `link <http://kennethreitz.com>`_!