I tried to reproduce this locally, but I can’t. If I include a lightboxed image at the beginning of the post, it simply skips the lightbox/link, and shows the text below:
Can you share the ‘raw’ markdown for the post which has the issue?
Also, can you share your values for the relevent site settings:


