Let pandoc output a standalone HTML5.

This is because the markdown-mode makes the output an XHTML although pandoc
outputs an HTML5 fragment.