Using CSS3 attribute selectors to align images in Markdown
18 Jul 2017If you are looking to align images in a pure markdown (no HTML) document you can use CSS3 attribute selectors to select images with a certain anchors in its path.
Example
Markdown
![Alt](image.jpg#right)
CSS
img[src*='#right']{ float: right; }
This way with a few lines of css you can use valid markdown to control layout.