From 103ff01d0ece0f3c0112b48015750300d907d8fa Mon Sep 17 00:00:00 2001 From: Jieiku Date: Tue, 31 May 2022 02:09:53 -0700 Subject: Improve Shortcodes, example content, page scores, fonts --- templates/macros/head.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'templates/macros') diff --git a/templates/macros/head.html b/templates/macros/head.html index 6736cd9..42d8fa0 100644 --- a/templates/macros/head.html +++ b/templates/macros/head.html @@ -203,14 +203,17 @@ {%- endif %} {%- endmacro %} - +{# https://katex.org/docs/autorender.html #} +{# https://github.com/KaTeX/KaTeX/ #} +{# https://github.com/KaTeX/KaTeX/tree/main/contrib/mathtex-script-type/ #} {%- macro math() %} - {%- if config.extra.katex_enabled %} - - - - {%- if config.extra.katex_auto_render %} - + {%- if config.extra.math or page.extra.math %} + + + + {%- if config.extra.math_auto_render or page.extra.math_auto_render %} + + {%- endif %} {%- endif %} {%- endmacro %} -- cgit v1.3.1