summaryrefslogtreecommitdiffstats
path: root/lib/utils/page.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-30 17:47:19 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-30 17:47:19 +0100
commited3b77b655d2d0dcac83df192ebc970f0062cb16 (patch)
treee2fd9ab2bcb7c163f1a1cb0b0522e5bb81ad9d1d /lib/utils/page.js
parent55a1aee164f0389af8fcc08ac900df74955eadff (diff)
downloadgitbook-ed3b77b655d2d0dcac83df192ebc970f0062cb16.zip
gitbook-ed3b77b655d2d0dcac83df192ebc970f0062cb16.tar.gz
gitbook-ed3b77b655d2d0dcac83df192ebc970f0062cb16.tar.bz2
Don't use xmlMode to normalize html
Diffstat (limited to 'lib/utils/page.js')
-rw-r--r--lib/utils/page.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/page.js b/lib/utils/page.js
index bd8ada3..f422d4c 100644
--- a/lib/utils/page.js
+++ b/lib/utils/page.js
@@ -78,7 +78,7 @@ function pregQuote( str ) {
// Adapt an html snippet to be relative to a base folder
function normalizeHtml(src, options) {
- var $ = cheerio.load(src, { xmlMode: true});
+ var $ = cheerio.load(src, { xmlMode: false});
var toConvert = [];
var svgContent = {};
var outputRoot = options.book.options.output;