aboutsummaryrefslogtreecommitdiff
path: root/sx-question-print.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-24 01:18:42 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-24 01:18:42 -0200
commit5a4c4dba75ad605110a4415478072cdb4a907b20 (patch)
tree1055b1eaa28954efe6107e549c7f7f9c1d03911e /sx-question-print.el
parentd0a09664737d82985c0db040afeb89f69c5b61b3 (diff)
With nested links, just do the inner one.
Diffstat (limited to 'sx-question-print.el')
-rw-r--r--sx-question-print.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/sx-question-print.el b/sx-question-print.el
index 963bfb4..e76e006 100644
--- a/sx-question-print.el
+++ b/sx-question-print.el
@@ -331,7 +331,7 @@ E.g.:
(defconst sx-question-mode--link-regexp
;; Done at compile time.
(rx (or (and "[tag:" (group-n 5 (+ (not (any " ]")))) "]")
- (and (opt "!") "[" (group-n 1 (1+ (not (any "]")))) "]"
+ (and (opt "!") "[" (group-n 1 (1+ (not (any "[]")))) "]"
(or (and "(" (group-n 2 (1+ (not (any ")")))) ")")
(and "[" (group-n 3 (1+ (not (any "]")))) "]")))
(group-n 4 (and (and "http" (opt "s") "://") ""