Convert HTML to Markdown

Also, include validation in the process