From cb42d2041f56e27a1db41f668604551cdd9830b0 Mon Sep 17 00:00:00 2001 From: Nagakawa Yuno <43836984+Furffico@users.noreply.github.com> Date: Fri, 17 Feb 2023 03:03:32 +0800 Subject: [PATCH] fix: KaTeX may render contents in gist under certain conditions (#755) add gist to katex's ignoredClasses --- layouts/partials/article/components/math.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/article/components/math.html b/layouts/partials/article/components/math.html index d05861c..8e62151 100644 --- a/layouts/partials/article/components/math.html +++ b/layouts/partials/article/components/math.html @@ -7,6 +7,7 @@ { left: "$", right: "$", display: false }, { left: "\\(", right: "\\)", display: false }, { left: "\\[", right: "\\]", display: true } - ] + ], + ignoredClasses: ["gist"] });}) \ No newline at end of file