Preserve HTML doctype

Fixes gh-6