Attachment replaced by code

Tabbing/indenting an attachment following a bullet line replaced the attachment with a code line

What I did: added a line of text then added a photo attachment directly following, resized the photo to minimum and then indented it. (The goal was to fold the photo attachment ). Then I changed the line of text to a bullet (allow local folding).

What I expected: the photo attainment would remain minimized and would be foldable under the parent bullet line.

What happened: the attachment was replaced with reference code t