diff --git a/texmath.js b/texmath.js index ebd61d4..20544e7 100644 --- a/texmath.js +++ b/texmath.js @@ -208,6 +208,12 @@ texmath.$_post = (str,outerSpace,end) => { texmath.rules = { brackets: { inline: [ + { name: 'math_inline_double', + rex: /\\\[([\s\S]+?)\\\]/gy, + tmpl: '
$1
', + tag: '\\[', + displayMode: true + }, { name: 'math_inline', rex: /\\\((.+?)\\\)/gy, tmpl: '$1',