Markdown: Difference between revisions
Jump to navigation
Jump to search
(→Tips) |
(→Tips) |
||
Line 8: | Line 8: | ||
== Tips == |
== Tips == |
||
=== Preview Markdown before pushing to GitHub === |
|||
Use the wonderful tool [https://github.com/joeyespo/grip GRIP — GitHub README Instant Preview]. |
|||
<source lang=bash> |
|||
sudo apt install grip |
|||
cd /my/repo |
|||
grip # Now, open up browser to http://localhost:6419/ |
|||
</source> |
|||
=== Comments in Markdown === |
=== Comments in Markdown === |
||
We abuse link tags [https://stackoverflow.com/questions/4823468/comments-in-markdown]: |
We abuse link tags [https://stackoverflow.com/questions/4823468/comments-in-markdown]: |
Revision as of 00:48, 29 December 2017
Links
- References
- Tools
Tips
Preview Markdown before pushing to GitHub
Use the wonderful tool GRIP — GitHub README Instant Preview.
sudo apt install grip
cd /my/repo
grip # Now, open up browser to http://localhost:6419/
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">