Johan Ekenberg <johan.ekenb...@gmail.com> writes:

> - Start emacs: 'emacs -Q'
> - Paste this function into the scratch buffer and evaluate it:
>   (defun test-org-insertion-fontification ()
>     (interactive)
>     (let* ((chunks
>             '("#+begin_src elisp\n"
>               "(+ 1 2)"
>               "\n#+end_src\n")))
> ...

Confirmed.
It is a bug in `org-fontify-extend-region'.
It receives "\n#+end_src\n" line and does not mark the appeared src
block for re-fontification.

Not urgent.

Will likely be fixed after fontification rewrite.
https://orgmode.org/list/87ee7c9quk.fsf@localhost

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to