From bbef90942955529fa37c0a4a766cea1f5ac7215d Mon Sep 17 00:00:00 2001 From: Dianyi Yang <105025148+kv9898@users.noreply.github.com> Date: Sun, 13 Oct 2024 13:48:09 +0800 Subject: [PATCH 1/5] Update giscus.ejs to fix giscus color on load --- src/resources/formats/html/giscus/giscus.ejs | 43 ++++++++++++-------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/src/resources/formats/html/giscus/giscus.ejs b/src/resources/formats/html/giscus/giscus.ejs index d80da2f2fcb..b2fc0e09d20 100644 --- a/src/resources/formats/html/giscus/giscus.ejs +++ b/src/resources/formats/html/giscus/giscus.ejs @@ -1,17 +1,28 @@ - - \ No newline at end of file + + From f2c6f6455d1e1a9e746c1e123a926c77592adcf9 Mon Sep 17 00:00:00 2001 From: Dianyi Yang <105025148+kv9898@users.noreply.github.com> Date: Sun, 13 Oct 2024 22:07:00 +0800 Subject: [PATCH 2/5] Replace timeout with async while loop to increase robustness --- src/resources/formats/html/giscus/giscus.ejs | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/resources/formats/html/giscus/giscus.ejs b/src/resources/formats/html/giscus/giscus.ejs index b2fc0e09d20..58709bc429c 100644 --- a/src/resources/formats/html/giscus/giscus.ejs +++ b/src/resources/formats/html/giscus/giscus.ejs @@ -1,6 +1,40 @@ From 31bcfdd3c8d0a5d42e5211f1ddc60812e5608d63 Mon Sep 17 00:00:00 2001 From: Dianyi Yang <105025148+kv9898@users.noreply.github.com> Date: Sun, 13 Oct 2024 22:07:00 +0800 Subject: [PATCH 4/5] Replace timeout with async while loop to increase robustness --- src/resources/formats/html/giscus/giscus.ejs | 48 ++++++++++++-------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/src/resources/formats/html/giscus/giscus.ejs b/src/resources/formats/html/giscus/giscus.ejs index b2fc0e09d20..16717a379d5 100644 --- a/src/resources/formats/html/giscus/giscus.ejs +++ b/src/resources/formats/html/giscus/giscus.ejs @@ -1,28 +1,38 @@ From 894526ce4cec185ef93416c1d447535901f35149 Mon Sep 17 00:00:00 2001 From: Dianyi Yang <105025148+kv9898@users.noreply.github.com> Date: Sat, 19 Oct 2024 00:20:16 +0800 Subject: [PATCH 5/5] switch to MutationObserver --- src/resources/formats/html/giscus/giscus.ejs | 61 ++++++++++++-------- 1 file changed, 38 insertions(+), 23 deletions(-) diff --git a/src/resources/formats/html/giscus/giscus.ejs b/src/resources/formats/html/giscus/giscus.ejs index 16717a379d5..723fbeb6f7d 100644 --- a/src/resources/formats/html/giscus/giscus.ejs +++ b/src/resources/formats/html/giscus/giscus.ejs @@ -1,11 +1,7 @@