Function: markdown-ts--list-item-text-column
markdown-ts--list-item-text-column is a byte-compiled function defined
in markdown-ts-mode.el.gz.
Signature
(markdown-ts--list-item-text-column ITEM)
Documentation
Return the column where the text of list ITEM starts.
This is the column of the first paragraph node inside ITEM, or the width of the list marker if no paragraph is found.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--list-item-text-column (item)
"Return the column where the text of list ITEM starts.
This is the column of the first paragraph node inside ITEM, or
the width of the list marker if no paragraph is found."
(let ((paragraph (treesit-search-subtree item "\\`paragraph\\'")))
(if paragraph
(save-excursion
(goto-char (treesit-node-start paragraph))
(current-column))
(let ((marker (treesit-node-child item 0)))
(- (treesit-node-end marker)
(treesit-node-start marker))))))