Function: markdown-make-tilde-fence-regex

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

Signature

(markdown-make-tilde-fence-regex NUM-TILDES &optional END-OF-LINE)

Documentation

Return regexp matching a tilde code fence at least NUM-TILDES long.

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

Source Code

;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
(defsubst markdown-make-tilde-fence-regex (num-tildes &optional end-of-line)
  "Return regexp matching a tilde code fence at least NUM-TILDES long.
END-OF-LINE is the regexp construct to indicate end of line; $ if
missing."
  (format "%s%d%s%s" "^[[:blank:]]*\\([~]\\{" num-tildes ",\\}\\)"
          (or end-of-line "$")))