From f12f9b4f28109c30364c0b379db5d8bbe5850a2d Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 14 Oct 2018 09:57:47 +0200 Subject: [PATCH] Fix fontification of links within verbatim markup * lisp/org.el (org-do-emphasis-faces): Prevent fontification of links within verbatim markup. --- lisp/org.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 2b7d16c3a..c0eaecdab 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5808,7 +5808,9 @@ This should be called after the variable `org-link-parameters' has changed." (match-beginning 2) (match-end 2) 'face face) (when verbatim? (org-remove-flyspell-overlays-in - (match-beginning 0) (match-end 0))) + (match-beginning 0) (match-end 0)) + (remove-text-properties (match-beginning 2) (match-end 2) + '(display t invisible t intangible t))) (add-text-properties (match-beginning 2) (match-end 2) '(font-lock-multiline t org-emphasis t)) (when org-hide-emphasis-markers