Function: markdown-ts-demote
markdown-ts-demote is an interactive and byte-compiled function
defined in markdown-ts-mode.el.gz.
Signature
(markdown-ts-demote)
Documentation
Demote the heading or list item at point.
For headings, increase the level (e.g., # to ##).
For list items, increase nesting (indent).
With transient-mark-mode(var)/transient-mark-mode(fun) on and mark active, demote all headings
in the region.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts-demote ()
"Demote the heading or list item at point.
For headings, increase the level (e.g., # to ##).
For list items, increase nesting (indent).
With `transient-mark-mode' on and mark active, demote 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 t))
(t (markdown-ts--promote-or-demote 1))))