https://github.com/evilstreak/markdown-js/blob/master/lib/markdown.js