diff options
Diffstat (limited to 'lib/utils/page.js')
-rw-r--r-- | lib/utils/page.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/utils/page.js b/lib/utils/page.js index f771f72..ec91e0b 100644 --- a/lib/utils/page.js +++ b/lib/utils/page.js @@ -78,7 +78,14 @@ function pregQuote( str ) { // Adapt an html snippet to be relative to a base folder function normalizeHtml(src, options) { - var $ = cheerio.load(src, { xmlMode: false}); + var $ = cheerio.load(src, { + // We should parse html without trying to normalize too much + xmlMode: false, + + // SVG need some attributes to use uppercases + lowerCaseAttributeNames: false, + lowerCaseTags: false + }); var toConvert = []; var svgContent = {}; var outputRoot = options.book.options.output; |