From: Ardis Lu Date: Wed, 22 Sep 2021 01:55:01 +0000 (-0700) Subject: Add support for bullet lists X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=0b704a05cf10abee252fcdfd73e3d7328f71be6b;p=ardislu.dev Add support for bullet lists --- 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);