From 4e1f3ae2f06af34f30f0211faaeeff32e7bd2ac7 Mon Sep 17 00:00:00 2001 From: Mehak Nasir Date: Wed, 28 Sep 2022 22:42:47 +0500 Subject: [PATCH] fix: double slash also supported now for mathjax rendering --- src/components/HTMLLoader.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/HTMLLoader.jsx b/src/components/HTMLLoader.jsx index 1fe7d661..851ce87d 100644 --- a/src/components/HTMLLoader.jsx +++ b/src/components/HTMLLoader.jsx @@ -8,12 +8,14 @@ const baseConfig = { tex2jax: { inlineMath: [ ['$', '$'], + ['\\\\(', '\\\\)'], ['\\(', '\\)'], ['[mathjaxinline]', '[/mathjaxinline]'], ], displayMath: [ ['[mathjax]', '[/mathjax]'], ['$$', '$$'], + ['\\\\[', '\\\\]'], ['\\[', '\\]'], ], },