Variable: markdown-regex-math-display
markdown-regex-math-display is a variable defined in markdown-mode.el.
Value
"^[[:blank:]]*\\(\\(\\\\\\{1,2\\}\\)\\[\\)\\([^z-a]*?\\)\\(\\2]\\)$"
Documentation
Regular expression for [..] or M-x ..\ (..\) display math.
Groups 1 and 4 match the opening and closing markup. Group 3 matches the mathematical expression contained within. Group 2 matches the opening slashes, and is used internally to match the closing slashes.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defconst markdown-regex-math-display
(rx line-start (* blank)
(group (group (repeat 1 2 "\\")) "[")
(group (*? anything))
(group (backref 2) "]")
line-end)
"Regular expression for \[..\] or \\[..\\] display math.
Groups 1 and 4 match the opening and closing markup.
Group 3 matches the mathematical expression contained within.
Group 2 matches the opening slashes, and is used internally to
match the closing slashes.")