getgrav / grav-learn

Grav Learn (exhaustive grav documentation)
http://learn.getgrav.org
MIT License
228 stars 785 forks source link

Media "sizes" doesn't render properly with markdown syntax #979

Open JordanGuiz opened 2 years ago

JordanGuiz commented 2 years ago

Hi, I was trying to set media queries for some images in the markdown editor, and I found out a problem with the "sizes" attribute. In the dedicated part of the tutorial called sizes-with-media-queries, the example is supposed to establish two image sizes, depending on the size of the screen : 100vw when the screen is smaller than 26em, 50vw for bigger screens. The problem is that the resulting html only has the first size specification "(max-width:26em)+100vw" and not the second one for bigger screens... Could this be fixed easily?