rlister / org-present

Ultra-minimalist presentation minor-mode for Emacs org-mode.
363 stars 31 forks source link

Hiding emphasis markers is over eager #12

Open rpglover64 opened 8 years ago

rpglover64 commented 8 years ago

To replicate, create a "slide" with the following:

#+BEGIN_SRC haskell
whenM :: (Monad m) => m Bool -> m () -> m ()
whenM mb mx = mb >>= \b -> when b mx
#+END_SRC

The slide will show

whenM :: (Monad m) > m Bool -> m () -> m ()
whenM mb mx = mb >> \b -> when b mx

Consider using the org-hide-emphasis-markers variable instead.

facundoolano commented 6 years ago

Found a similar problem with table borders: the plus in --+-- is being removed. Using org-hide-emphasis-markers seems like a good option.

Kazark commented 4 years ago

I ran into this sort of problem as well.

Kazark commented 4 years ago

Unfortunately org-emph-re is also matching the bullets at the beginning of the lines and interfering badly with that.

AkibAzmain commented 1 year ago

This is bugging me as well. Doing the following works for me:

(setq-local org-hide-emphasis-markers t)
(font-lock-fontify-buffer)