From 64a613ce31a1e236ebb9003f2f8d5d116bdf2446 Mon Sep 17 00:00:00 2001
From: KK <bebound@users.noreply.github.com>
Date: Tue, 26 Nov 2019 12:50:56 +0000
Subject: [PATCH] Add \\( and \\[ as mathjax delimiters (#239)

---
 layouts/partials/posts/math.html |    7 +++----
 CONTRIBUTORS.md                  |    1 +
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index de47216..beb3b11 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -50,3 +50,4 @@
 - [José Mª Escartín](https://github.com/jme52)
 - [John Schroeder](https://blog.schroedernet.software)
 - [Tobias Lindberg](https://tobiaslindberg.com)
+- [KK](https://github.com/bebound)
diff --git a/layouts/partials/posts/math.html b/layouts/partials/posts/math.html
index c64a187..49c07ce 100644
--- a/layouts/partials/posts/math.html
+++ b/layouts/partials/posts/math.html
@@ -6,10 +6,7 @@
     MathJax = {
       tex: {
         inlineMath: [
-          ['$', '$']
-        ],
-        displayMath: [
-          ['$$', '$$']
+          ['$', '$'], ['\\(', '\\)']
         ],
         processEscapes: true,
         processEnvironments: true
@@ -29,6 +26,8 @@
         delimiters: [
           {left: '$$', right: '$$', display:true},
           {left: '$', right: '$', display:false},
+          {left: '\\(', right: '\\)', display: false},
+          {left: '\\[', right: '\\]', display: true}
         ]
       }
     );">

--
Gitblit v1.10.0