There’s a ‘float’ option in the MD Composer extras theme component that might be useful to you? There are quite a few other formatting options in there too, so you may just want to create your own ‘mini’ version with just the float option in.
Edit: Yup, I was way off.
Though I’m not sure I’ve understood the requirement fully, so could be way off.