mirror of https://github.com/luizdepra/hugo-coder.git

KK
26.50.2019 64a613ce31a1e236ebb9003f2f8d5d116bdf2446
Add \\( and \\[ as mathjax delimiters (#239)

2 files modified
8 ■■■■ changed files
CONTRIBUTORS.md 1 ●●●● patch | view | raw | blame | history
layouts/partials/posts/math.html 7 ●●●●● patch | view | raw | blame | history
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)
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}
        ]
      }
    );">