Function: markdown-ts--section-folded-p
markdown-ts--section-folded-p is a byte-compiled function defined in
markdown-ts-mode.el.gz.
Signature
(markdown-ts--section-folded-p SECTION)
Documentation
Return non-nil if SECTION's heading is folded.
Checks whether the end of the heading line has an outline invisible overlay.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--section-folded-p (section)
"Return non-nil if SECTION's heading is folded.
Checks whether the end of the heading line has an outline
invisible overlay."
(let ((heading (treesit-node-child section 0)))
(when (and heading
(equal (treesit-node-type heading) "atx_heading"))
(save-excursion
(goto-char (treesit-node-start heading))
(outline-invisible-p (pos-eol))))))