Commit bb060efc authored by Alf Eaton's avatar Alf Eaton

Add force_output: true

Ensure that output is created even if Tidy encounters an error
parent e2327589
......@@ -111,11 +111,14 @@ class HTMLEPUB {
parse (html) {
const epub = this
// http://api.html-tidy.org/tidy/tidylib_api_5.2.0/quick_ref.html
// http://api.html-tidy.org/tidy/quickref_5.4.0.html
// http://api.html-tidy.org/tidy/quickref_next.html
const options = {
doctype: 'html5',
output_xhtml: true,
force_output: true,
tidy_mark: false
// custom_tags: true
}
return new Promise((resolve, reject) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment