]> git.ardis.lu - ardislu.dev/commitdiff
Add support for bullet lists
authorArdis Lu <ardisglu@gmail.com>
Wed, 22 Sep 2021 01:55:01 +0000 (18:55 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 22 Sep 2021 01:55:01 +0000 (18:55 -0700)
404.html

index a2ac275a7f7524fe91a91b8712ed539b2604f7b8..3fae7d2133c2e667f9d15156038efd1bd5c92f39 100644 (file)
--- 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);
This page took 0.035375 seconds and 4 git commands to generate.