Function: markdown-insert-pre

markdown-insert-pre is an interactive and byte-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

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/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)))