to-markdown.js

Try it

HTML input:

Markdown output:

Source on GitHub

to-markdown is copyright © 2011 Dom Christie and is released under the MIT licence.