Added support for markdown

Also updated the documentation.