diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-29 16:21:36 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-29 16:21:36 +0100 |
commit | c8e72092c707d69799c1ccf99ed101970482880b (patch) | |
tree | cffd3b3434ae52cb6d587dd943242035824b077e /lib/utils/page.js | |
parent | 9172948c182a7d90afcf499856aea7bc7afdfec4 (diff) | |
download | gitbook-c8e72092c707d69799c1ccf99ed101970482880b.zip gitbook-c8e72092c707d69799c1ccf99ed101970482880b.tar.gz gitbook-c8e72092c707d69799c1ccf99ed101970482880b.tar.bz2 |
Fix inline svg image in page
Diffstat (limited to 'lib/utils/page.js')
-rw-r--r-- | lib/utils/page.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/page.js b/lib/utils/page.js index 0166288..4c8605d 100644 --- a/lib/utils/page.js +++ b/lib/utils/page.js @@ -65,7 +65,7 @@ function pregQuote( str ) { // Adapt an html snippet to be relative to a base folder function normalizeHtml(src, options) { - var $ = cheerio.load(src); + var $ = cheerio.load(src, { xmlMode: true}); var toConvert = []; var outputRoot = options.book.options.output; |