0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 21:37:50 +00:00

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

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