You have to use an HTML tag, Once you use an HTML tag in Markdown, everything between the open and closing tag must be also in HTML.
You can directly attach align=""
to any HTML
tag, or create <div>
or <p>
tags with align properties attached to them.
<p align="center">
<img width="100" height="100" src="http://beau.sh/assets/media/images/logos/sage.png?raw=true" />
</p>
<p align="left">
<img width="100" height="100" src="http://beau.sh/assets/media/images/logos/sage.png?raw=true" />
</p>
<p align="right">
<img width="100" height="100" src="http://beau.sh/assets/media/images/logos/sage.png?raw=true" />
</p>
<div align="center">
<img width="100" height="100" src="http://beau.sh/assets/media/images/logos/sage.png?raw=true">
<img width="100" height="100" src="http://beau.sh/assets/media/images/logos/sage.png?raw=true">
<img width="100" height="100" src="http://beau.sh/assets/media/images/logos/sage.png?raw=true">
</div>
It is no longer recommended to directly attach align=""
to <img/>
tags
Read here: MDN HTMLImageElement Documentation on ‘align’ property.