Function: markdown-ts--heading-at-point

markdown-ts--heading-at-point is a byte-compiled function defined in markdown-ts-mode.el.gz.

Signature

(markdown-ts--heading-at-point)

Documentation

Return the atx_heading node at or before point, or nil.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--heading-at-point ()
  "Return the atx_heading node at or before point, or nil."
  (when-let* ((node (treesit-node-at (point) 'markdown)))
    (if (equal (treesit-node-type node) "atx_heading")
        node
      (treesit-parent-until
       node (lambda (n) (equal (treesit-node-type n) "atx_heading"))))))