summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2017-11-27 22:54:41 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-11-27 22:54:41 +0100
commit5873d9912145fb19d00cfa47587f8e16c59da56a (patch)
treebaad57de009d828b64fffea703aded7d0906ad83
parentadfbfd42b2982ca8865c9f9e289d888fe294a8b1 (diff)
downloadorg-mode-5873d9912145fb19d00cfa47587f8e16c59da56a.tar.gz
Fix headline fontification
* lisp/org.el (org-do-emphasis-faces): Do not emphasize stars in headlines. Reported-by: swflint@flintfam.org (Samuel W. Flint) <http://lists.gnu.org/r/emacs-orgmode/2017-11/msg00363.html>
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 2b33a21..9f9a943 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5762,7 +5762,7 @@ This should be called after the variable `org-link-parameters' has changed."
(looking-at (if verbatim? org-verbatim-re org-emph-re))
;; Do not span over paragraph boundaries.
(not (string-match-p org-element-paragraph-separate
- (match-string 2)))
+ (match-string 0)))
;; Do not span over cells in table rows.
(not (and (save-match-data (org-match-line "[ \t]*|"))
(string-match-p "|" (match-string 4))))))