From be9c1301c55e79457d17fe98c2aca2bb628fa5ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Mon, 31 Aug 2020 21:33:36 +0200 Subject: [PATCH] feat: add katex support --- README.md | 28 ++++++++++++++++++++++++++++ templates/index.html | 15 +++++++++++++++ templates/shortcodes/katex.html | 1 + 3 files changed, 44 insertions(+) create mode 100644 templates/shortcodes/katex.html diff --git a/README.md b/README.md index 27d8cd2..a6a384d 100644 --- a/README.md +++ b/README.md @@ -65,5 +65,33 @@ The site title is shown on the homepage. As it might be different from the ` + {% if config.extra.katex_enable %} + + {% endif %} {% endblock css %} + {% block js %} + {% if config.extra.katex_enable %} + + + {% if config.extra.katex_auto_render %} + + {% endif %} + {% endif %} + + {% endblock js %} + {% block extra_head %} {% endblock extra_head %} diff --git a/templates/shortcodes/katex.html b/templates/shortcodes/katex.html new file mode 100644 index 0000000..1d13c0a --- /dev/null +++ b/templates/shortcodes/katex.html @@ -0,0 +1 @@ +