Function: markdown-narrow-to-block

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

Signature

(markdown-narrow-to-block)

Documentation

Make text outside current block invisible.

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

Key Bindings

markdown-mode-map C-x n b

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-block ()
  "Make text outside current block invisible.
The current block is the one that contains point or follows point."
  (interactive)
  (let ((beginning-of-defun-function #'markdown-backward-block)
        (end-of-defun-function #'markdown-forward-block))
    (narrow-to-defun)))