Function: markdown-prev-list-item-bounds
markdown-prev-list-item-bounds is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-prev-list-item-bounds)
Documentation
Return bounds of previous item in the same list of any level.
The return value has the same form as that of
markdown-cur-list-item-bounds.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-prev-list-item-bounds ()
"Return bounds of previous item in the same list of any level.
The return value has the same form as that of
`markdown-cur-list-item-bounds'."
(save-excursion
(let ((cur-bounds (markdown-cur-list-item-bounds))
(beginning-of-list (save-excursion (markdown-beginning-of-list)))
stop)
(when cur-bounds
(goto-char (nth 0 cur-bounds))
(while (and (not stop) (not (bobp))
(re-search-backward markdown-regex-list
beginning-of-list t))
(unless (or (looking-at markdown-regex-hr)
(markdown-code-block-at-point-p))
(setq stop (point))))
(markdown-cur-list-item-bounds)))))