Variable: markdown-regex-tilde-fence-begin

markdown-regex-tilde-fence-begin is a variable defined in markdown-mode.el.

Value

"^[[:blank:]]*\\([~]\\{3,\\}\\)\\([[:blank:]]*{?\\)[[:blank:]]*\\([^[:space:]]+?\\)?\\(?:[[:blank:]]+\\(.+?\\)\\)?\\([[:blank:]]*}?[[:blank:]]*\\)$"

Documentation

Regular expression for matching tilde-fenced code blocks.

Group 1 matches the opening tildes. Group 2 matches (optional) opening brace and surrounding whitespace. Group 3 matches the language identifier (optional). Group 4 matches the info string (optional). Group 5 matches the closing brace (optional) and any surrounding whitespace. Groups need to agree with markdown-regex-gfm-code-block-open.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defconst markdown-regex-tilde-fence-begin
  (markdown-make-tilde-fence-regex
   3 "\\([[:blank:]]*{?\\)[[:blank:]]*\\([^[:space:]]+?\\)?\\(?:[[:blank:]]+\\(.+?\\)\\)?\\([[:blank:]]*}?[[:blank:]]*\\)$")
  "Regular expression for matching tilde-fenced code blocks.
Group 1 matches the opening tildes.
Group 2 matches (optional) opening brace and surrounding whitespace.
Group 3 matches the language identifier (optional).
Group 4 matches the info string (optional).
Group 5 matches the closing brace (optional) and any surrounding whitespace.
Groups need to agree with `markdown-regex-gfm-code-block-open'.")