diff --git a/code.js b/code.js index b852e6a..c4eb457 100644 --- a/code.js +++ b/code.js @@ -64,9 +64,9 @@ function processItem(item, listCounters, images) { if (item.getType() == DocumentApp.ElementType.PARAGRAPH) { switch (item.getHeading()) { // Add a # for each heading level. No break, so we accumulate the right number. - case DocumentApp.ParagraphHeading.HEADING6: + case DocumentApp.ParagraphHeading.HEADING6: prefix = "
", suffix = "
"; } @@ -203,6 +203,9 @@ function processText(item, output) { else if (partText.trim().indexOf('http://') == 0) { output.push('' + partText + ''); } + else if (partAtts.LINK_URL) { + output.push('' + partText + ''); + } else { output.push(partText); }