Function: markdown-ts--adaptive-fill
markdown-ts--adaptive-fill is a byte-compiled function defined in
markdown-ts-mode.el.gz.
Signature
(markdown-ts--adaptive-fill)
Documentation
Return the fill prefix for the current line in Markdown.
When inside a list item, return spaces matching the column where the item's text starts.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--adaptive-fill ()
"Return the fill prefix for the current line in Markdown.
When inside a list item, return spaces matching the column where
the item's text starts."
(and-let* ((node (treesit-node-at
(save-excursion (back-to-indentation) (point))
'markdown))
(item (treesit-parent-until node "\\`list_item\\'")))
(make-string (markdown-ts--list-item-text-column item) ?\s)))