diff --git a/nikola/conf.py.in b/nikola/conf.py.in index fb43e8cfb..64cc5a3be 100644 --- a/nikola/conf.py.in +++ b/nikola/conf.py.in @@ -1026,9 +1026,15 @@ PRETTY_URLS = ${PRETTY_URLS} # delimiters: [ # {left: "$$", right: "$$", display: true}, # {left: "\\\\[", right: "\\\\]", display: true}, +# {left: "\\\\begin{equation}", right: "\\\\end{equation}", display: true}, # {left: "\\\\begin{equation*}", right: "\\\\end{equation*}", display: true}, +# {left: "\\\\begin{align}", right: "\\\\end{align}", display: true}, +# {left: "\\\\begin{align*}", right: "\\\\end{align*}", display: true}, +# {left: "\\\\begin{alignat}", right: "\\\\end{alignat}", display: true}, +# {left: "\\\\begin{gather}", right: "\\\\end{gather}", display: true}, +# {left: "\\\\begin{CD}", right: "\\\\end{CD}", display: true}, # {left: "$", right: "$", display: false}, -# {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 c16f9b859..d5be54ffc 100644 --- a/nikola/data/themes/base-jinja/templates/math_helper.tmpl +++ b/nikola/data/themes/base-jinja/templates/math_helper.tmpl @@ -1,28 +1,36 @@ {# 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 +48,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 961b7ced2..7f4342739 100644 --- a/nikola/data/themes/base/templates/math_helper.tmpl +++ b/nikola/data/themes/base/templates/math_helper.tmpl @@ -1,28 +1,36 @@ ### 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 +48,7 @@ <%def name="math_styles()"> % if use_katex: - + % endif