Function: markdown-rx

markdown-rx is a macro defined in markdown-mode.el.

Signature

(markdown-rx &rest REGEXPS)

Documentation

Markdown mode specialized rx macro.

This variant of rx supports common Markdown named REGEXPS.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
;;; Markdown-Specific `rx' Macro ==============================================

;; Based on python-rx from python.el.
(defmacro markdown-rx (&rest regexps)
  "Markdown mode specialized rx macro.
This variant of `rx' supports common Markdown named REGEXPS."
  `(rx-let ((newline "\n")
            ;; Note: #405 not consider markdown-list-indent-width however this is never used
            (indent (or (repeat 4 " ") "\t"))
            (block-end (and (or (one-or-more (zero-or-more blank) "\n") line-end)))
            (numeral (and (one-or-more (any "0-9#")) "."))
            (bullet (any "*+:-"))
            (list-marker (or (and (one-or-more (any "0-9#")) ".")
                             (any "*+:-")))
            (checkbox (seq "[" (any " xX") "]")))
     (rx ,@regexps)))