From f4c423a808e776433e5d24a3a15725e894e05cda Mon Sep 17 00:00:00 2001 From: viennet Date: Thu, 30 Sep 2021 20:50:50 +0200 Subject: [PATCH] =?UTF-8?q?js=20pour=20pymdownx=20(=C3=A9quations=20LaTeX)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/javascripts/config.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docs/javascripts/config.js diff --git a/docs/javascripts/config.js b/docs/javascripts/config.js new file mode 100644 index 000000000..fd764a732 --- /dev/null +++ b/docs/javascripts/config.js @@ -0,0 +1,16 @@ +window.MathJax = { + tex: { + inlineMath: [["\\(", "\\)"]], + displayMath: [["\\[", "\\]"]], + processEscapes: true, + processEnvironments: true + }, + options: { + ignoreHtmlClass: ".*|", + processHtmlClass: "arithmatex" + } +}; + +document$.subscribe(() => { + MathJax.typesetPromise() +})