This question already has an answer here:
I am generating a pdf with pandoc (source is markdown) and as latex formatting is want to do, the images sometimes go onto the next page and not exactly where they are inside the content.
This is okay, but my latest version of a document has an image which is intersecting a code block.
IMAGE + image tile
For obvious reasons this is jarring and not what I expected to happen. Is there a way to fix this? I do not want to inline the image (everything about how the image is displayed is how I want it, except its location).