Function: markdown-ts-promote

markdown-ts-promote is an interactive and byte-compiled function defined in markdown-ts-mode.el.gz.

Signature

(markdown-ts-promote)

Documentation

Promote the heading or list item at point.

For headings, decrease the level (e.g., ## to #). For list items, decrease nesting (dedent). With transient-mark-mode(var)/transient-mark-mode(fun) on and mark active, promote all headings in the region.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts-promote ()
  "Promote the heading or list item at point.
For headings, decrease the level (e.g., ## to #).
For list items, decrease nesting (dedent).
With `transient-mark-mode' on and mark active, promote all
headings in the region."
  (interactive)
  (cond
   ((and transient-mark-mode mark-active)
    (markdown-ts--promote-or-demote-region -1))
   ((markdown-ts--list-item-at-point)
    (markdown-ts--list-promote-or-demote nil))
   (t (markdown-ts--promote-or-demote -1))))