Function: markdown-insert-wiki-link
markdown-insert-wiki-link is an interactive and byte-compiled function
defined in markdown-mode.el.
Signature
(markdown-insert-wiki-link)
Documentation
Insert a wiki link of the form [[WikiLink]].
If there is an active region, use the region as the link text. If the point is at a word, use the word as the link text. If there is no active region and the point is not at word, simply insert link markup.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-insert-wiki-link ()
"Insert a wiki link of the form [[WikiLink]].
If there is an active region, use the region as the link text.
If the point is at a word, use the word as the link text. If
there is no active region and the point is not at word, simply
insert link markup."
(interactive)
(if (use-region-p)
;; Active region
(markdown-wrap-or-insert "[[" "]]" nil (region-beginning) (region-end))
;; Markup removal, wiki link at at point, or empty markup insertion
(if (thing-at-point-looking-at markdown-regex-wiki-link)
(if (or markdown-wiki-link-alias-first
(null (match-string 5)))
(markdown-unwrap-thing-at-point nil 1 3)
(markdown-unwrap-thing-at-point nil 1 5))
(markdown-wrap-or-insert "[[" "]]"))))