mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-30 04:27:48 +00:00
ol: Allow [[\\\\]] links
* lisp/ol.el (org-link-make-regexps): Allow [[\\\\]] links.
This commit is contained in:
parent
e48fac5231
commit
f3474724ad
|
@ -714,11 +714,12 @@ This should be called after the variable `org-link-parameters' has changed."
|
||||||
(rx (seq "[["
|
(rx (seq "[["
|
||||||
;; URI part: match group 1.
|
;; URI part: match group 1.
|
||||||
(group
|
(group
|
||||||
(*? anything)
|
|
||||||
;; Allow an even number of backslashes right
|
;; Allow an even number of backslashes right
|
||||||
;; before the closing bracket.
|
;; before the closing bracket.
|
||||||
|
(or (one-or-more "\\\\")
|
||||||
|
(and (*? anything)
|
||||||
(not (any "\\"))
|
(not (any "\\"))
|
||||||
(zero-or-more "\\\\"))
|
(zero-or-more "\\\\"))))
|
||||||
"]"
|
"]"
|
||||||
;; Description (optional): match group 2.
|
;; Description (optional): match group 2.
|
||||||
(opt "[" (group (+? anything)) "]")
|
(opt "[" (group (+? anything)) "]")
|
||||||
|
|
Loading…
Reference in a new issue