Skip to content

Commit

Permalink
fix(pdf) Fixes pdf generation for optionals/conditionals
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Aug 22, 2020
1 parent d3ae29f commit c2c4edf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/markdown-pdf/src/ToPdfMakeVisitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,10 @@ class ToPdfMakeVisitor {
result.text = fixedText;
}
break;
case 'Optional':
case 'Conditional': {
result.text = thing.nodes[0].text;
const child = this.processChildNodes(thing,parameters);
result.text = child;
}
break;
case 'HtmlInline':
Expand Down

0 comments on commit c2c4edf

Please sign in to comment.