Function: markdown-cycle-hr
markdown-cycle-hr is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-cycle-hr ARG &optional REMOVE)
Documentation
Cycle string used for horizontal rule from markdown-hr-strings.
When ARG is 1, cycle forward (demote), and when ARG is -1, cycle
backwards (promote). When REMOVE is non-nil, remove the hr instead
of cycling when the end of the list is reached.
Assumes match data is available for markdown-regex-hr.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-cycle-hr (arg &optional remove)
"Cycle string used for horizontal rule from `markdown-hr-strings'.
When ARG is 1, cycle forward (demote), and when ARG is -1, cycle
backwards (promote). When REMOVE is non-nil, remove the hr instead
of cycling when the end of the list is reached.
Assumes match data is available for `markdown-regex-hr'."
(let* ((strings (if (= arg -1)
(reverse markdown-hr-strings)
markdown-hr-strings))
(tail (member (match-string 0) strings))
(new (or (cadr tail)
(if remove
(if (= arg 1)
""
(car tail))
(car strings)))))
(replace-match new)))