Text/Markdown/Rest to markdown