Allow preview for HTML documents.

Closes #774
Merge pull request #776 from anandthakker/preview-html-files

Allow preview for HTML documents.