From fff7e87630437b9ea0c82649cf0a8b4377790f1a Mon Sep 17 00:00:00 2001 From: Sauli Anto Date: Sat, 28 Sep 2019 18:09:39 +0300 Subject: [PATCH] Fix equation regexp --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index fcc907571..fcd682581 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,4 +1,4 @@ -export const EQUATION_REGEXP = /^\\(\[|\().*?\\(\]|\))$/; +export const EQUATION_REGEXP = /^(\\\[.*?\\\]|\\\(.*?\\\))$/; export const defaultConfig = { engine: 'mathjax',