Fix link fontification

* lisp/org.el (org-activate-links): Stop at paragraph boundaries.
This commit is contained in:
Nicolas Goaziou 2019-03-16 13:56:42 +01:00
parent 0a8de94b13
commit bab7dcbee8
1 changed files with 3 additions and 0 deletions

View File

@ -5142,6 +5142,9 @@ This includes angle, plain, and bracket links."
((eq ?\[ (char-after (1+ start))) 'bracket)
(t 'plain))))
(when (and (memq style org-highlight-links)
;; Do not span over paragraph boundaries.
(not (string-match-p org-element-paragraph-separate
(match-string 0)))
;; Do not confuse plain links with tags.
(not (and (eq style 'plain)
(let ((face (get-text-property