Skip to content

Commit c2c4edf

Browse files
committed
fix(pdf) Fixes pdf generation for optionals/conditionals
Signed-off-by: Jerome Simeon <[email protected]>
1 parent d3ae29f commit c2c4edf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/markdown-pdf/src/ToPdfMakeVisitor.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,10 @@ class ToPdfMakeVisitor {
205205
result.text = fixedText;
206206
}
207207
break;
208+
case 'Optional':
208209
case 'Conditional': {
209-
result.text = thing.nodes[0].text;
210+
const child = this.processChildNodes(thing,parameters);
211+
result.text = child;
210212
}
211213
break;
212214
case 'HtmlInline':

0 commit comments

Comments
 (0)