mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 22:47:56 +00:00
Fix link fontification
* lisp/org.el (org-activate-links): Stop at paragraph boundaries.
This commit is contained in:
parent
0a8de94b13
commit
bab7dcbee8
|
@ -5142,6 +5142,9 @@ This includes angle, plain, and bracket links."
|
||||||
((eq ?\[ (char-after (1+ start))) 'bracket)
|
((eq ?\[ (char-after (1+ start))) 'bracket)
|
||||||
(t 'plain))))
|
(t 'plain))))
|
||||||
(when (and (memq style org-highlight-links)
|
(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.
|
;; Do not confuse plain links with tags.
|
||||||
(not (and (eq style 'plain)
|
(not (and (eq style 'plain)
|
||||||
(let ((face (get-text-property
|
(let ((face (get-text-property
|
||||||
|
|
Loading…
Reference in a new issue