branch: externals/denote commit d304e3556f7f365bfaa2b9ebe61b49e4fccf9c6c Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Add regexp for plain link format --- denote-link.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/denote-link.el b/denote-link.el index 70cf4fbc8b..602dbf5ff2 100644 --- a/denote-link.el +++ b/denote-link.el @@ -106,6 +106,9 @@ and/or the documentation string of `display-buffer'." (defconst denote-link--regexp-markdown (concat "\\[.*?]" "(denote:" "\\(?1:" denote--id-regexp "\\)" ")")) +(defconst denote-link--regexp-plain + (concat "\\[\\[" "denote:" "\\(?1:" denote--id-regexp "\\)" "]]")) + (defun denote-link--file-type-format (file) "Return link format based on FILE format." (pcase (file-name-extension file)