integral-dw / org-superstar-mode

Make org-mode stars a little more super
GNU General Public License v3.0
506 stars 22 forks source link

src block output not fontified with org-superstar #39

Open timlod opened 2 years ago

timlod commented 2 years ago

See https://github.com/nnicandro/emacs-jupyter/issues/366. On Emacs 27.1, with org 9.4.6+ (also tried at 9.5.1) - output of src blocks is not fontified if org-superstar is loaded (the problem persists even when turning org-superstar-mode off).

Tested with a minimal config, loading only org-mode. Lack of fontification can be checked with:

#+begin_src python :results output
print('AB\x1b[43mCD\x1b[0mEF')
#+end_src

#+RESULTS:
: ABCDEF
integral-dw commented 1 year ago

Hi @timlod, looking into nnicandro/emacs-jupyter#366 this seems to be font-lock choking on something. I haven't gotten around to reproduce it yet since I'd need to sort out the dependencies and test things proper. But just to make sure: do you mean that just requiring the package changes the behavior of font-lock, even if the mode was never enabled? Or do you mean it has a lasting impact if it was enabled and is subsequently disabled?