Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
Fix issue #16
  • Loading branch information
Aymkdn committed Sep 25, 2019
1 parent 65a9b8e commit 71f35f3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ module.exports = function(htmlText, options) {
ret.style = ret.style.concat(cssClass.split(' '));
}
// do we have a default style to apply?
applyDefaultStyle(ret, 'table');
applyDefaultStyle(ret, nodeName);
}

// retrieve the class from the parent
Expand Down
1 change: 1 addition & 0 deletions example.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ var html = htmlToPdfMake(`
<span class="a">text "bold" <span class="b">text "bold & italic" <span class="c">text "bold & italic & red"</span> text "bold & italic"</span> text "bold"</span>
`, {window:window});


var docDefinition = {
content: [
html
Expand Down
Binary file modified example.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ module.exports = function(htmlText, options) {
ret.style = ret.style.concat(cssClass.split(' '));
}
// do we have a default style to apply?
applyDefaultStyle(ret, 'table');
applyDefaultStyle(ret, nodeName);
}

// retrieve the class from the parent
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": "1.1.0",
"version": "1.1.1",
"description": "Convert HTML code to PDFMake",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 71f35f3

Please sign in to comment.