Function: markdown--cur-list-item-bounds
markdown--cur-list-item-bounds is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown--cur-list-item-bounds)
Documentation
Return a list describing the list item at point.
Assumes that match data is set for markdown-regex-list. See the
documentation for markdown-cur-list-item-bounds for the format of
the returned list.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown--cur-list-item-bounds ()
"Return a list describing the list item at point.
Assumes that match data is set for `markdown-regex-list'. See the
documentation for `markdown-cur-list-item-bounds' for the format of
the returned list."
(save-excursion
(let* ((begin (match-beginning 0))
(indent (length (match-string-no-properties 1)))
(nonlist-indent (- (match-end 3) (match-beginning 0)))
(marker (buffer-substring-no-properties
(match-beginning 2) (match-end 3)))
(checkbox (match-string-no-properties 4))
(match (butlast (match-data t)))
(end (markdown-cur-list-item-end nonlist-indent)))
(list begin end indent nonlist-indent marker checkbox match))))