Function: markdown-wiki-link-p

markdown-wiki-link-p is a byte-compiled function defined in markdown-mode.el.

Signature

(markdown-wiki-link-p)

Documentation

Return non-nil if wiki links are enabled and point is at a true wiki link.

A true wiki link name matches markdown-regex-wiki-link but does not match the current file name after conversion. This modifies the data returned by match-data. Note that the potential wiki link name must be available via match-string.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
;;; Wiki Links ================================================================

(defun markdown-wiki-link-p ()
  "Return non-nil if wiki links are enabled and `point' is at a true wiki link.
A true wiki link name matches `markdown-regex-wiki-link' but does
not match the current file name after conversion.  This modifies
the data returned by `match-data'.  Note that the potential wiki
link name must be available via `match-string'."
  (when markdown-enable-wiki-links
    (let ((case-fold-search nil))
      (and (thing-at-point-looking-at markdown-regex-wiki-link)
           (not (markdown-code-block-at-point-p))
           (or (not buffer-file-name)
               (not (string-equal (buffer-file-name)
                                  (markdown-convert-wiki-link-to-filename
                                   (markdown-wiki-link-link)))))))))