Function: markdown-make-gfm-fence-regex

markdown-make-gfm-fence-regex is a byte-compiled function defined in markdown-mode.el.

Signature

(markdown-make-gfm-fence-regex NUM-BACKTICKS &optional END-OF-LINE)

Documentation

Return regexp matching a GFM code fence at least NUM-BACKTICKS long.

END-OF-LINE is the regexp construct to indicate end of line; $ if missing.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defsubst markdown-make-gfm-fence-regex (num-backticks &optional end-of-line)
  "Return regexp matching a GFM code fence at least NUM-BACKTICKS long.
END-OF-LINE is the regexp construct to indicate end of line; $ if
missing."
  (format "%s%d%s%s" "^[[:blank:]]*\\([`]\\{" num-backticks ",\\}\\)"
          (or end-of-line "$")))