Function: markdown--substitute-command-keys

markdown--substitute-command-keys is a byte-compiled function defined in markdown-mode.el.

Signature

(markdown--substitute-command-keys STRING)

Documentation

Like substitute-command-keys but, but prefers control characters.

First pass STRING to substitute-command-keys and then substitute `C-i` for `TAB` and `C-m` for `RET`.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown--substitute-command-keys (string)
  "Like `substitute-command-keys' but, but prefers control characters.
First pass STRING to `substitute-command-keys' and then
substitute `C-i` for `TAB` and `C-m` for `RET`."
  (replace-regexp-in-string
   "\\<TAB\\>" "C-i"
   (replace-regexp-in-string
    "\\<RET\\>" "C-m" (substitute-command-keys string) t) t))