Hi Ihor, > That’s an option. Though you should also consider a paragraph ending at > EOB. Searching for “” will fail with error then. Don’t worry, that’s just a snippet. The full logic is as follows ┌──── │ (min limit (or (save-excursion (and (search-forward "\n" limit t 2) (point))) │ (point-max))) └──── >> [use org-element] Ah right. We now also have the new thread about using org-element. I think that sounds like a great change overall, but am still keen for this patch to go through for the moment — just as a stop gap till org-element exposes all the necessary information and there are some nice examples of using it for fontification. I’ve attached the latest version of the patch. At this point I consider it fairly well-reviewed, so I’ll push it tomorrow if I don’t hear of any last-minute issues. All the best, Timothy