Procházet zdrojové kódy

Add \\( and \\[ as mathjax delimiters (#239)

KK před 6 roky
rodič
revize
64a613ce31
2 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 1 0
      CONTRIBUTORS.md
  2. 3 4
      layouts/partials/posts/math.html

+ 1 - 0
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)

+ 3 - 4
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}
         ]
       }
     );">