Function: markdown-outline-level
markdown-outline-level is a natively compiled function defined in
markdown-mode.el.
Signature
(markdown-outline-level)
Documentation
Return the depth to which a statement is nested in the outline.
Source Code
;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
(defun markdown-outline-level ()
"Return the depth to which a statement is nested in the outline."
(cond
((and (match-beginning 0)
(markdown-code-block-at-pos (match-beginning 0)))
7) ;; Only 6 header levels are defined.
((match-end 2) 1)
((match-end 3) 2)
((match-end 4)
(length (markdown-trim-whitespace (match-string-no-properties 4))))))