Function: markdown-narrow-to-subtree

markdown-narrow-to-subtree is an interactive and byte-compiled function defined in markdown-mode.el.

Signature

(markdown-narrow-to-subtree)

Documentation

Narrow buffer to the current subtree.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-narrow-to-subtree ()
  "Narrow buffer to the current subtree."
  (interactive)
  (save-excursion
    (save-match-data
      (narrow-to-region
       (progn (markdown-back-to-heading-over-code-block t) (point))
       (progn (markdown-end-of-subtree)
              (if (and (markdown-heading-at-point) (not (eobp)))
                  (backward-char 1))
              (point))))))