Owned.

The behavior described by the OP was reproduced in Org mode version
9.7.11 (release_9.7.11 @ /usr/local/share/emacs/30.1/lisp/org/ and
can be solved with the following patch to =org-activate-links= :

-       (when (and (memq style org-highlight-links)
-                  ;; Do not span over paragraph boundaries.
-                  (not (string-match-p org-element-paragraph-separate

+       (when (and (memq style org-highlight-links)
+                   ;; Do not activate links inside Org comments.
+                  (not (save-excursion (goto-char start) (org-at-comment-p)))
+                  ;; Do not span over paragraph boundaries.
+                  (not (string-match-p org-element-paragraph-separate

Someone with more experience than me, please review and
apply this simple patch.

--
PavoDive

Reply via email to