From f3474724ad5cbee318df1f38d67d175652958567 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 20 Aug 2019 14:24:38 +0200 Subject: [PATCH] ol: Allow [[\\\\]] links * lisp/ol.el (org-link-make-regexps): Allow [[\\\\]] links. --- lisp/ol.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/ol.el b/lisp/ol.el index a6f76a39f..a2fb3a84d 100644 --- a/lisp/ol.el +++ b/lisp/ol.el @@ -714,11 +714,12 @@ This should be called after the variable `org-link-parameters' has changed." (rx (seq "[[" ;; URI part: match group 1. (group - (*? anything) ;; Allow an even number of backslashes right ;; before the closing bracket. - (not (any "\\")) - (zero-or-more "\\\\")) + (or (one-or-more "\\\\") + (and (*? anything) + (not (any "\\")) + (zero-or-more "\\\\")))) "]" ;; Description (optional): match group 2. (opt "[" (group (+? anything)) "]")