Function: markdown-pre-indentation

markdown-pre-indentation is a byte-compiled function defined in markdown-mode.el.

Signature

(markdown-pre-indentation LOC)

Documentation

Return string containing necessary whitespace for a pre block at LOC.

Also see markdown-blockquote-indentation.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-pre-indentation (loc)
  "Return string containing necessary whitespace for a pre block at LOC.
Also see `markdown-blockquote-indentation'."
  (save-excursion
    (goto-char loc)
    (let* ((list-level (length (markdown-calculate-list-levels)))
           indent)
      (dotimes (_ (1+ list-level) indent)
        (setq indent (concat indent "    "))))))