Function: markdown-do
markdown-do is an interactive and byte-compiled function defined in
markdown-mode.el.
Signature
(markdown-do)
Documentation
Do something sensible based on context at point.
Jumps between reference links and definitions; between footnote markers and footnote text.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-do ()
"Do something sensible based on context at point.
Jumps between reference links and definitions; between footnote
markers and footnote text."
(interactive)
(cond
;; Footnote definition
((markdown-footnote-text-positions)
(markdown-footnote-return))
;; Footnote marker
((markdown-footnote-marker-positions)
(markdown-footnote-goto-text))
;; Reference link
((thing-at-point-looking-at markdown-regex-link-reference)
(markdown-reference-goto-definition))
;; Reference definition
((thing-at-point-looking-at markdown-regex-reference-definition)
(markdown-reference-goto-link (match-string-no-properties 2)))
;; Link
((or (markdown-link-p) (markdown-wiki-link-p))
(markdown-follow-thing-at-point nil))
;; GFM task list item
((markdown-gfm-task-list-item-at-point)
(markdown-toggle-gfm-checkbox))
;; Align table
((markdown-table-at-point-p)
(call-interactively #'markdown-table-align))
;; Otherwise
(t
(markdown-insert-gfm-checkbox))))