Browse Source

Fix link fontification

* lisp/org.el (org-activate-links): Stop at paragraph boundaries.
Nicolas Goaziou 1 month ago
parent
commit
bab7dcbee8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lisp/org.el

+ 3 - 0
lisp/org.el

@@ -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