Function: markdown-ts--outline-predicate

markdown-ts--outline-predicate is a byte-compiled function defined in markdown-ts-mode.el.gz.

Signature

(markdown-ts--outline-predicate NODE)

Documentation

Match NODE if it is a hierarchical section that has a heading.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--outline-predicate (node)
  "Match NODE if it is a hierarchical section that has a heading."
  (and (equal (treesit-node-type node) "section")
       (when-let* ((child (treesit-node-child node 0)))
         (equal (treesit-node-type child) "atx_heading"))))