From 0ddfd7720b9ea1a234a5f8f138f1e5259455d5b6 Mon Sep 17 00:00:00 2001 From: Paul Strachan Date: Thu, 8 Aug 2024 11:54:08 +1000 Subject: [PATCH] fix: inline block brackets --- texmath.js | 6 ++++++ 1 file changed, 6 insertions(+) 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',