From 609d43b088c3a8133170466171bcbc3585c3faed Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Wed, 27 Mar 2024 16:38:30 +0100 Subject: [PATCH] fix: make KaTeX render all math inside `document.body` (#994) Since it only accepts one element, I cannot pass `.article-content` and `#TableOfContent` to it. The official documentation uses `document.body` directly, so I guess that's fine. closes https://github.com/CaiJimmy/hugo-theme-stack/issues/882 --- 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 8e62151..bd1a7f8 100644 --- a/layouts/partials/article/components/math.html +++ b/layouts/partials/article/components/math.html @@ -1,7 +1,7 @@ {{- partial "helper/external" (dict "Context" . "Namespace" "KaTeX") -}}