Function: markdown-pre-indentation

markdown-pre-indentation is a natively 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 /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/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 "    "))))))