Generate reStructuredText from markdown

Improvement of #18.