From d1538b04ed61da6a1e8f56ff7e638729bbb6d76b Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Wed, 27 Mar 2024 16:34:56 +0100 Subject: [PATCH] fix: make KaTeX render all math inside `document.body` 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") -}}