From 0bf6ff5834cedc4efb19db89502a6482b04f194f Mon Sep 17 00:00:00 2001 From: Nathan Ho Date: Tue, 29 Aug 2023 06:33:33 -0700 Subject: [PATCH 1/5] Upgrade KaTeX to 0.16.8 --- nikola/conf.py.in | 1 + .../base-jinja/templates/math_helper.tmpl | 41 +++++++++++-------- .../themes/base/templates/math_helper.tmpl | 41 +++++++++++-------- 3 files changed, 47 insertions(+), 36 deletions(-) diff --git a/nikola/conf.py.in b/nikola/conf.py.in index fb43e8cfb0..a85a81b15b 100644 --- a/nikola/conf.py.in +++ b/nikola/conf.py.in @@ -1027,6 +1027,7 @@ PRETTY_URLS = ${PRETTY_URLS} # {left: "$$", right: "$$", display: true}, # {left: "\\\\[", right: "\\\\]", display: true}, # {left: "\\\\begin{equation*}", right: "\\\\end{equation*}", display: true}, +# {left: "\\\\begin{align*}", right: "\\\\end{align*}", display: true}, # {left: "$", right: "$", display: false}, # {left: "\\\\(", right: "\\\\)", display: false} # ] diff --git a/nikola/data/themes/base-jinja/templates/math_helper.tmpl b/nikola/data/themes/base-jinja/templates/math_helper.tmpl index c16f9b8596..12988927ae 100644 --- a/nikola/data/themes/base-jinja/templates/math_helper.tmpl +++ b/nikola/data/themes/base-jinja/templates/math_helper.tmpl @@ -1,28 +1,33 @@ {# Note: at present, MathJax and KaTeX do not respect the USE_CDN configuration option #} {% macro math_scripts() %} {% if use_katex %} - - + + {% if katex_auto_render %} {% else %} {% endif %} {% else %} @@ -40,7 +45,7 @@ {% macro math_styles() %} {% if use_katex %} - + {% endif %} {% endmacro %} diff --git a/nikola/data/themes/base/templates/math_helper.tmpl b/nikola/data/themes/base/templates/math_helper.tmpl index 961b7ced20..7a34409633 100644 --- a/nikola/data/themes/base/templates/math_helper.tmpl +++ b/nikola/data/themes/base/templates/math_helper.tmpl @@ -1,28 +1,33 @@ ### Note: at present, MathJax and KaTeX do not respect the USE_CDN configuration option <%def name="math_scripts()"> %if use_katex: - - + + % if katex_auto_render: % else: % endif %else: @@ -40,7 +45,7 @@ <%def name="math_styles()"> % if use_katex: - + % endif From a5f53f732d57000aabda0c56f35ccd513f454de2 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Mon, 10 Mar 2025 23:44:50 -0700 Subject: [PATCH 2/5] KaTeX update to 0.16.21 --- nikola/data/themes/base-jinja/templates/math_helper.tmpl | 6 +++--- nikola/data/themes/base/templates/math_helper.tmpl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nikola/data/themes/base-jinja/templates/math_helper.tmpl b/nikola/data/themes/base-jinja/templates/math_helper.tmpl index 12988927ae..68e9944dd7 100644 --- a/nikola/data/themes/base-jinja/templates/math_helper.tmpl +++ b/nikola/data/themes/base-jinja/templates/math_helper.tmpl @@ -1,8 +1,8 @@ {# Note: at present, MathJax and KaTeX do not respect the USE_CDN configuration option #} {% macro math_scripts() %} {% if use_katex %} - - + + {% if katex_auto_render %} - + + % if katex_auto_render: - + + {% if katex_auto_render %} - + + % if katex_auto_render: