Function: markdown-electric-backquote
markdown-electric-backquote is an interactive and natively compiled
function defined in markdown-mode.el.
Signature
(markdown-electric-backquote ARG)
Documentation
Insert a backquote.
The numeric prefix argument ARG says how many times to repeat the insertion.
Call markdown-insert-gfm-code-block interactively
if three backquotes inserted at the beginning of line.
Key Bindings
gfm-mode-map `
Source Code
;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
(defun markdown-electric-backquote (arg)
"Insert a backquote.
The numeric prefix argument ARG says how many times to repeat the insertion.
Call `markdown-insert-gfm-code-block' interactively
if three backquotes inserted at the beginning of line."
(interactive "*P")
(self-insert-command (prefix-numeric-value arg))
(when (and markdown-gfm-use-electric-backquote (looking-back "^```" nil))
(replace-match "")
(call-interactively #'markdown-insert-gfm-code-block)))