Sizes with media queries in markdown

I wonder what the status of using the sizes option with media queries in markdown is. It would be nice to be able to get control of my pictures on different displays…

Seems to be possible to do it with Twig like this:

===
title: About me
process:
  twig: true
===
<div style="float:left;margin:2rem 2rem 1rem 1rem">
{{ page.media['myimage.jpg'].derivatives(250,450,100).sizes('(min-width:50em) 17vw, 17vw').html() }}
</div>

This text wraps around image