From 61ea9bec99ddc455ea5308fc70fbf3c8f3a1e853 Mon Sep 17 00:00:00 2001 From: fsj2009yx <148683018+fsj2009yx@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:03:58 +0800 Subject: [PATCH 1/2] fix: resolve issue with comments not displaying due to KaTeX and Waline render order --- layouts/partials/article/components/math.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/article/components/math.html b/layouts/partials/article/components/math.html index bd1a7f81a..e3130abf1 100644 --- a/layouts/partials/article/components/math.html +++ b/layouts/partials/article/components/math.html @@ -8,6 +8,6 @@ { left: "\\(", right: "\\)", display: false }, { left: "\\[", right: "\\]", display: true } ], - ignoredClasses: ["gist"] + ignoredClasses: ["gist","waline-container"] });}) \ No newline at end of file From 22e4b6779d32af46bccc8450a770085a9e900535 Mon Sep 17 00:00:00 2001 From: fsj2009yx <148683018+fsj2009yx@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:58:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?Fix=20the=20problem=20that=20comment=20data?= =?UTF-8?q?=20couldn't=20be=20pulled=20successfully=20and=20raise=20Error?= =?UTF-8?q?=20"Cannot=20read=20property=20=E2=80=98insertBefore=E2=80=99?= =?UTF-8?q?=20of=20null""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/article/components/math.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layouts/partials/article/components/math.html b/layouts/partials/article/components/math.html index e3130abf1..b41e4c9ee 100644 --- a/layouts/partials/article/components/math.html +++ b/layouts/partials/article/components/math.html @@ -1,13 +1,14 @@ {{- partial "helper/external" (dict "Context" . "Namespace" "KaTeX") -}} \ No newline at end of file +