Simple image grids for Jekyll (Or any Markdown environment really)

Here's a thing I might start doing on my Jekyll blog:

When you drop your images in without a linebreak in between markdown will put them all in the same <p> tag. If we set that <p> tag to display: flex it gives us the simplest image grid of all time with no additional markup - Sweet.

We do however need Javascript to find out wich paragraphs have images and only apply the flexbox stuff to those - not so great. If you have a way to do this without Javascript feel free to give me a shout on Twiter .

I guess you could set it up so every paragraph is a flex container but everything that isn't an image behaves just like normal?

one
You could like totally have a caption here. Absolutely no problem at all mate.

one
![two] (https://66.media.tumblr.com/36d571b7ef26d9aefca33e3e71e45ea4/tumblr_o9uj2iO8ZM1vz406io1_500.jpg)
You could like totally have a caption here. Absolutely no problem at all mate.

one
![two] (https://66.media.tumblr.com/36d571b7ef26d9aefca33e3e71e45ea4/tumblr_o9uj2iO8ZM1vz406io1_500.jpg)
three
You could like totally have a caption here. Absolutely no problem at all mate.

Wooooo! Let me know what you think people.