From 0b704a05cf10abee252fcdfd73e3d7328f71be6b Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Tue, 21 Sep 2021 18:55:01 -0700 Subject: [PATCH] Add support for bullet lists --- 404.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/404.html b/404.html index a2ac275..3fae7d2 100644 --- a/404.html +++ b/404.html @@ -42,8 +42,9 @@ 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); -- 2.47.3