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 bounds for list item at point.
Return a list of the following form:
(begin end indent nonlist-indent marker checkbox match)
The named components are:
- begin: Position of beginning of list item, including leading indentation.
- end: Position of the end of the list item, including list item text.
- indent: Number of characters of indentation before list marker (an integer).
- nonlist-indent: Number characters of indentation, list
marker, and whitespace following list marker (an integer).
- marker: String containing the list marker and following whitespace
(e.g., "- " or "* ").
- checkbox: String containing the GFM checkbox portion, if any,
including any trailing whitespace before the text
begins (e.g., "[x] ").
- match: match data for markdown-regex-list
As an example, for the following unordered list item
- item
the returned list would be
(1 14 3 5 "- " nil (1 6 1 4 4 5 5 6))
If the point is not inside a list item, return nil.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-cur-list-item-bounds ()
"Return bounds for list item at point.
Return a list of the following form:
(begin end indent nonlist-indent marker checkbox match)
The named components are:
- begin: Position of beginning of list item, including leading indentation.
- end: Position of the end of the list item, including list item text.
- indent: Number of characters of indentation before list marker (an integer).
- nonlist-indent: Number characters of indentation, list
marker, and whitespace following list marker (an integer).
- marker: String containing the list marker and following whitespace
(e.g., \"- \" or \"* \").
- checkbox: String containing the GFM checkbox portion, if any,
including any trailing whitespace before the text
begins (e.g., \"[x] \").
- match: match data for markdown-regex-list
As an example, for the following unordered list item
- item
the returned list would be
(1 14 3 5 \"- \" nil (1 6 1 4 4 5 5 6))
If the point is not inside a list item, return nil."
(car (get-text-property (line-beginning-position) 'markdown-list-item)))