let articleContent = "";
for (let content of googleDoc.body.content) {
const tag = mapping[content?.paragraph?.paragraphStyle?.namedStyleType];
+ const bullet = content?.paragraph?.bullet ? '- ' : '';
if (tag !== undefined) {
- articleContent += `${tag}${content.paragraph.elements[0].textRun.content}`;
+ articleContent += `${bullet}${tag}${content.paragraph.elements[0].textRun.content}`;
}
}
article.innerHTML = marked(articleContent);