Function: markdown-remove-header

markdown-remove-header is an interactive and byte-compiled function defined in markdown-mode.el.

Signature

(markdown-remove-header)

Documentation

Remove header markup if point is at a header.

Return bounds of remaining header text if a header was removed and nil otherwise.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-remove-header ()
  "Remove header markup if point is at a header.
Return bounds of remaining header text if a header was removed
and nil otherwise."
  (interactive "*")
  (or (markdown-unwrap-thing-at-point markdown-regex-header-atx 0 2)
      (markdown-unwrap-thing-at-point markdown-regex-header-setext 0 1)))