How to enable images in shared mardown files

adding images in the same folder as the .md file resides works well in Nextcloud, but if we share that .md file the images will not be displayed.

adding images to nextclouds own invisible folder also will not display any images as far as I know.

Is there any reliable way to share markdown files with their images? ¨Allow edit¨ does not help.