From 498b85eb899c12468f90b9e3c4af3cfd7e83b025 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Tue, 30 Nov 2021 16:48:14 +0100 Subject: [PATCH] Bump Bootstrap, Mermaid and KaTeX to their latest versions Documentation for KaTeX: fix incorrect equation --- layouts/partials/scripts.html | 22 +++++++++---------- .../diagrams-and-formulae/index.md | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index c6ae38241..0e3177ebd 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,12 +1,12 @@ - {{ if .Site.Params.mermaid.enable }} - + {{ end }} {{ if .Site.Params.markmap.enable }} @@ -33,22 +33,22 @@ {{ if .Site.Params.katex.enable }} - + - {{ if .Site.Params.katex.mhchem.enable }} - {{ end }} - {{ end }} diff --git a/userguide/content/en/docs/Adding content/diagrams-and-formulae/index.md b/userguide/content/en/docs/Adding content/diagrams-and-formulae/index.md index 942023849..1e5363d9f 100644 --- a/userguide/content/en/docs/Adding content/diagrams-and-formulae/index.md +++ b/userguide/content/en/docs/Adding content/diagrams-and-formulae/index.md @@ -18,10 +18,10 @@ With \\(\KaTeX\\) support enabled in Docsy, you can include complex mathematical The following code sample produces a text line with three inline formulae: ```tex -When \\(a \ne 0\\), there are two solutions to \\(ax2 + bx + c= 0\\) and they are \\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\\) +When \\(a \ne 0\\), there are two solutions to \\(ax^2 + bx + c= 0\\) and they are \\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\\) ``` -When \\(a \ne 0\\), there are two solutions to \\(ax2 + bx + c= 0\\) and they are \\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\\) +When \\(a \ne 0\\), there are two solutions to \\(ax^2 + bx + c= 0\\) and they are \\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}.\\) ### Formulae in display mode