org.el (org-do-latex-and-related): Fix duplicate 'latex faces
* lisp/org.el (org-do-latex-and-related): Do not add a 'org-latex-and-related face beyond the fontification limit.
This commit is contained in:
parent
478929ae61
commit
36622362d1
|
@ -5487,6 +5487,8 @@ highlighting was done, nil otherwise."
|
|||
(while (and (< (point) limit)
|
||||
(re-search-forward org-latex-and-related-regexp nil t))
|
||||
(cond
|
||||
((>= (match-beginning 0) limit)
|
||||
(throw 'found nil))
|
||||
((cl-some (lambda (f)
|
||||
(memq f '(org-code org-verbatim underline
|
||||
org-special-keyword)))
|
||||
|
|
Loading…
Reference in New Issue