Markdown: Difference between revisions

From miki
Jump to navigation Jump to search
Line 12: Line 12:


[//]: # (This may be the most platform independent comment)
[//]: # (This may be the most platform independent comment)

=== Align images ===
To center image on GitHub [https://gist.github.com/DavidWells/7d2e0e1bc78f4ac59a123ddf8b74932d]:

<source lang=markdown>
<p align="center">
<img width="460" height="300" src="http://www.fillmurray.com/460/300">
</p>
</source>

To left/right align:
<source lang=markdown>
<img align="left" width="100" height="100" src="http://www.fillmurray.com/100/100">
<img align="right" width="100" height="100" src="http://www.fillmurray.com/100/100">
</source>

Revision as of 00:44, 29 December 2017

Links

References
Tools

Tips

Comments in Markdown

We abuse link tags [1]:

[//]: # (This may be the most platform independent comment)

Align images

To center image on GitHub [2]:

<p align="center">
  <img width="460" height="300" src="http://www.fillmurray.com/460/300">
</p>

To left/right align:

<img align="left" width="100" height="100" src="http://www.fillmurray.com/100/100">
<img align="right" width="100" height="100" src="http://www.fillmurray.com/100/100">