Skip to content

Commit c23c56b

Browse files
committed
Fix issue mangini#6
1 parent 6ef1ef9 commit c23c56b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

converttomarkdown.gapps

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,10 @@ function processParagraph(index, element, inSrc, imageCounter, listCounters) {
104104
"name": name});
105105
} else if (t === DocumentApp.ElementType.PAGE_BREAK) {
106106
// ignore
107+
} else if (t === DocumentApp.ElementType.FOOTNOTE) {
108+
textElements.push(' (NOTE: '+element.getChild(i).getFootnoteContents().getText()+')');
107109
} else {
108-
throw "Paragraph "+index+" of type "+element.getType()+" has an unsupported child: "+t+" "+element.getChild(i).getText()+" index="+index;
110+
throw "Paragraph "+index+" of type "+element.getType()+" has an unsupported child: "+t+" "+(element.getChild(i)["getText"] ? element.getChild(i).getText():'')+" index="+index;
109111
}
110112
}
111113

0 commit comments

Comments
 (0)