summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2018-10-14 09:57:47 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-10-14 09:57:47 +0200
commitf12f9b4f28109c30364c0b379db5d8bbe5850a2d (patch)
tree5c7651972d126914c936b0c3a5f03daf4a315bc2
parent085f150372ef5db69eaa5ec210fbceba0262d854 (diff)
downloadorg-mode-f12f9b4f28109c30364c0b379db5d8bbe5850a2d.tar.gz
Fix fontification of links within verbatim markup
* lisp/org.el (org-do-emphasis-faces): Prevent fontification of links within verbatim markup.
-rw-r--r--lisp/org.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 2b7d16c..c0eaecd 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