Function: markdown-narrow-to-page

markdown-narrow-to-page is an interactive and natively compiled function defined in markdown-mode.el.

Signature

(markdown-narrow-to-page)

Documentation

Make text outside current top level section invisible.

The current section is the one that contains point or follows point.

Key Bindings

gfm-mode-map C-x n p markdown-mode-map C-x n p

Source Code

;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
(defun markdown-narrow-to-page ()
  "Make text outside current top level section invisible.
The current section is the one that contains point or follows point."
  (interactive)
  (let ((beginning-of-defun-function #'markdown-backward-page)
        (end-of-defun-function #'markdown-forward-page))
    (narrow-to-defun)))