Function: markdown-complete-hr

markdown-complete-hr is a natively compiled function defined in markdown-mode.el.

Signature

(markdown-complete-hr)

Documentation

Complete horizontal rules.

If horizontal rule string is a member of markdown-hr-strings, do nothing. Otherwise, replace with the car of markdown-hr-strings. Assumes match data is available for markdown-regex-hr. Return nil if markup was complete and non-nil if markup was completed.

Source Code

;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
(defun markdown-complete-hr ()
  "Complete horizontal rules.
If horizontal rule string is a member of `markdown-hr-strings',
do nothing.  Otherwise, replace with the car of
`markdown-hr-strings'.
Assumes match data is available for `markdown-regex-hr'.
Return nil if markup was complete and non-nil if markup was completed."
  (when (markdown-incomplete-hr-p)
    (replace-match (car markdown-hr-strings))
    t))