Function: markdown-insert-hr
markdown-insert-hr is an interactive and byte-compiled function
defined in markdown-mode.el.
Signature
(markdown-insert-hr ARG)
Documentation
Insert or replace a horizontal rule.
By default, use the first element of markdown-hr-strings. When
ARG is non-nil, as when given a prefix, select a different
element as follows. When prefixed with C-u (universal-argument),
use the last element of markdown-hr-strings instead. When
prefixed with an integer from 1 to the length of
markdown-hr-strings, use the element in that position instead.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-insert-hr (arg)
"Insert or replace a horizontal rule.
By default, use the first element of `markdown-hr-strings'. When
ARG is non-nil, as when given a prefix, select a different
element as follows. When prefixed with \\[universal-argument],
use the last element of `markdown-hr-strings' instead. When
prefixed with an integer from 1 to the length of
`markdown-hr-strings', use the element in that position instead."
(interactive "*P")
(when (thing-at-point-looking-at markdown-regex-hr)
(delete-region (match-beginning 0) (match-end 0)))
(markdown-ensure-blank-line-before)
(cond ((equal arg '(4))
(insert (car (reverse markdown-hr-strings))))
((and (integerp arg) (> arg 0)
(<= arg (length markdown-hr-strings)))
(insert (nth (1- arg) markdown-hr-strings)))
(t
(insert (car markdown-hr-strings))))
(markdown-ensure-blank-line-after))