diff --git a/packages/markdown-pdf/src/ToPdfMakeVisitor.js b/packages/markdown-pdf/src/ToPdfMakeVisitor.js index f9f87c54..b501c662 100644 --- a/packages/markdown-pdf/src/ToPdfMakeVisitor.js +++ b/packages/markdown-pdf/src/ToPdfMakeVisitor.js @@ -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':