make html preview optional
Merge branch 'feature/optional-preview-html'