Function: markdown-insert-pre

markdown-insert-pre is an interactive and natively compiled function defined in markdown-mode.el.

Signature

(markdown-insert-pre)

Documentation

Start a preformatted section (or apply to the region).

If Transient Mark mode is on and a region is active, it is marked as preformatted text.

Key Bindings

markdown-mode-map C-c C-s p markdown-mode-style-map 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-insert-pre ()
  "Start a preformatted section (or apply to the region).
If Transient Mark mode is on and a region is active, it is marked
as preformatted text."
  (interactive)
  (if (use-region-p)
      (markdown-pre-region (region-beginning) (region-end))
    (markdown-ensure-blank-line-before)
    (insert (markdown-pre-indentation (point)))
    (markdown-ensure-blank-line-after)))