Function to convert xml to markdown

With the function hopefully we could use the beautiful editor edX has.
Add tests, using py.test