8000 Add 'Embedding Images in GitHub Wiki' section thanks to @lelandbatey … · s30java/github-cheat-sheet@07792b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 07792b3

Browse files
author
Rafal Chmiel
committed
Add 'Embedding Images in GitHub Wiki' section thanks to @lelandbatey 💘
1 parent b414281 commit 07792b3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ All the hidden and not hidden features of Git and GitHub. This cheat sheet was i
1717
- [Cross-Link Issues](#cross-link-issues)
1818
- [Contributing Guidelines](#contributing-guidelines)
1919
- [Syntax Highlighting in Markdown Files](#syntax-highlighting-in-markdown-files)
20+
- [Embedding Images in GitHub Wiki](#embedding-images-in-github-wiki)
2021
- [Commit History by Author](#commit-history-by-author)
2122
- [Empty Commits :trollface:](#empty-commits-trollface)
2223
- [Comparing Branches](#comparing-branches)
@@ -250,6 +251,27 @@ GitHub uses [Linguist](https://github.com/github/linguist) to perform language d
250251

251252
[*Read more about GitHub Flavored Markdown.*](https://help.github.com/articles/github-flavored-markdown)
252253

254+
## Embedding Images in GitHub Wiki
255+
There are multiple ways of embedding images in Wiki pages. There's the standard Markdown syntax:
256+
257+
```markdown
258+
![Description here](http://www.sheawong.com/wp-content/uploads/2013/08/keephatin.gif)
259+
```
260+
261+
Which produces:
262+
263+
![](http://www.sheawong.com/wp-content/uploads/2013/08/keephatin.gif)
264+
265+
But there's also a syntax that allows things like specifying the height or width of the image:
266+
267+
```markdown
268+
[[ http://www.sheawong.com/wp-content/uploads/2013/08/keephatin.gif | height = 100px ]]
269+
```
270+
271+
Which produces:
272+
273+
![Just a screenshot](http://i.imgur.com/J5bMf7S.png)
274+
253275
## Commit History by Author
254276

255277
To view all commits on a repo by author add `?author=username` to the URL.

0 commit comments

Comments
 (0)
0