File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -236,11 +236,9 @@ class ToPdfMakeVisitor {
236236 }
237237 break ;
238238 case 'Heading' : {
239- const child = this . processChildNodes ( thing , parameters ) ;
240- const text = child && child [ 0 ] && child [ 0 ] . text ? child [ 0 ] . text : '' ;
241239 result . style = ToPdfMakeVisitor . getHeadingType ( thing ) ;
242- result . text = `\n ${ text } \n` ;
243- result . tocItem = text . length > 0 ? true : false ;
240+ result . text = this . processChildNodes ( thing , parameters ) ;
241+ result . tocItem = thing . nodes && thing . nodes . length > 0 ? true : false ;
244242 }
245243 break ;
246244 case 'ThematicBreak' : {
Original file line number Diff line number Diff line change 11# Title (Heading One)
22
3+ Title2
4+ * (Heading Two)*
5+ ** on several lines**
6+ ----
7+
38This is normal text.
49
510This is * italic* text.
You can’t perform that action at this time.
0 commit comments