From 4e8a523fbe0fed4368142db12ccc45904a395a6d Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Mon, 3 Nov 2025 09:03:45 -0800 Subject: [PATCH] content: Update KaTeX link attributes to v0.16.25 (phase 2) Affects: - content/en/content-management/mathematics.md - content/en/functions/transform/ToMath.md - content/en/render-hooks/passthrough.md - layouts/baseof.html --- content/en/content-management/mathematics.md | 6 +++--- content/en/functions/transform/ToMath.md | 15 +++++++++++++-- content/en/render-hooks/passthrough.md | 7 ++++++- layouts/baseof.html | 7 +++++-- 4 files changed, 27 insertions(+), 8 deletions(-) diff --git a/content/en/content-management/mathematics.md b/content/en/content-management/mathematics.md index 41c9c2a36..5414a00f9 100644 --- a/content/en/content-management/mathematics.md +++ b/content/en/content-management/mathematics.md @@ -10,7 +10,7 @@ keywords: [] Mathematical equations and expressions written in [LaTeX][] are common in academic and scientific publications. Your browser typically renders this mathematical markup using an open-source JavaScript display engine such as [MathJax][] or [KaTeX][]. -For example, with this LaTeX markup: +For example, this LaTeX markup: ```text \[ @@ -21,7 +21,7 @@ JS(\hat{y} || y) &= \frac{1}{2}(KL(y||\frac{y+\hat{y}}{2}) + KL(\hat{y}||\frac{y \] ``` -The MathJax display engine renders this: +Is rendered to: \[ \begin{aligned} @@ -195,7 +195,7 @@ To use KaTeX instead of MathJax, replace the _partial_ template from [Step 2][] src="https://cdn.jsdelivr.net/npm/katex@0.16.25/dist/contrib/auto-render.min.js" integrity="sha384-hCXGrW6PitJEwbkoStFjeJxv+fSOOQKOPbJxSfM6G5sWZjAyWhXiTIIAmQqnlLlh" crossorigin="anonymous" - onload="renderMathInElement(document.body);"> + onload="renderMathInElement(document.body);">