Fix issues with markdown->reStructuredText conversion