Skip to content

Commit

Permalink
v2.4.6
Browse files Browse the repository at this point in the history
Ignore incorrect 'font-size' values (see #149)
  • Loading branch information
Aymkdn committed Sep 12, 2022
1 parent 96544a3 commit dcbe1f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)});
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit dcbe1f2

Please sign in to comment.