From 0092cf7a5899bc99b24ae613ebdff3a1e9b1d4a5 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 0000000..fd764a7 --- /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() +})