skoji / gepub

a generic EPUB library for Ruby : supports EPUB 3
Other
240 stars 42 forks source link

Include htm5 doctype in the generated nav file #123

Closed andyroberts closed 3 years ago

andyroberts commented 3 years ago

Epub3 uses xhtml5 for content files. Although the doctype is not mandatory, it’s better to include it. Editors like Sigil will complain that an epub contains files that not well-formed without the doctype.

I’ve therefore add a version check so it’s only inserted for epub v3.0 or greater.