diff --git a/index.js b/index.js index a29393b..78ae8f3 100644 --- a/index.js +++ b/index.js @@ -726,6 +726,8 @@ function htmlToPdfMake(htmlText, options) { if (value) { // convert value to a 'pt' when possible var parsedValue = _this.convertToUnit(value); + // if we have 'font-size' with a parsedValue at false, then ignore it + if (key === 'font-size' && parsedValue === false) break; ret.push({key:key, value:(parsedValue === false ? value : parsedValue)}); } } diff --git a/package.json b/package.json index 4af34f0..04e4d0e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "html-to-pdfmake", - "version": "2.4.5", + "version": "2.4.6", "description": "Convert HTML code to PDFMake", "main": "index.js", "scripts": {