Convert markdown into ReST format