pandoc

 pandoc  is a format converter which supports an extreme variety of input and output formats; useful to convert from/to HTML, Markdown, XML, docx, etc. formats. See http://pandoc.org/.