Compare commits
No commits in common. "e84ff23d33e0996a2120b9c7241bc0ff420fda5c" and "edfb3bc48356be2ab5b909424bf57fd3013ef843" have entirely different histories.
e84ff23d33
...
edfb3bc483
@ -2,14 +2,6 @@
|
|||||||
|
|
||||||
This cheatsheet is what works (and in a few cases, *doesn't* work) in Gitea. I'm presuming that this will also work on GitHub but I would need to post it there before I can confirm.
|
This cheatsheet is what works (and in a few cases, *doesn't* work) in Gitea. I'm presuming that this will also work on GitHub but I would need to post it there before I can confirm.
|
||||||
|
|
||||||
The pdf version is courtesy of [Pandoc](https://pandoc.org/). Converting markdown files to pdf is as easy as the following command:
|
|
||||||
|
|
||||||
```
|
|
||||||
pandoc markdown.md -o markdown.pdf
|
|
||||||
```
|
|
||||||
|
|
||||||
Very useful, indeed!
|
|
||||||
|
|
||||||
|
|
||||||
## Coda
|
## Coda
|
||||||
|
|
||||||
|
42
markdown.md
42
markdown.md
@ -166,14 +166,12 @@ Code:
|
|||||||
Here's our logo (hover to see the title text):
|
Here's our logo (hover to see the title text):
|
||||||
|
|
||||||
Inline-style:
|
Inline-style:
|
||||||
![alt text](https://raw.githubusercontent.com/kjodle/d12-message-blocks/
|
![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")
|
||||||
master/images/acorn.png "Logo Title Text 1")
|
|
||||||
|
|
||||||
Reference-style:
|
Reference-style:
|
||||||
![alt text][logo]
|
![alt text][logo]
|
||||||
|
|
||||||
[logo]: https://raw.githubusercontent.com/kjodle/d12-message-blocks/
|
[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"
|
||||||
master/images/acorn.png "Logo Title Text 2"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Results:
|
Results:
|
||||||
@ -181,12 +179,12 @@ Results:
|
|||||||
Here's our logo (hover to see the title text):
|
Here's our logo (hover to see the title text):
|
||||||
|
|
||||||
Inline-style:
|
Inline-style:
|
||||||
![alt text](https://raw.githubusercontent.com/kjodle/d12-message-blocks/master/images/acorn.png "Logo Title Text 1")
|
![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")
|
||||||
|
|
||||||
Reference-style:
|
Reference-style:
|
||||||
![alt text][logo]
|
![alt text][logo]
|
||||||
|
|
||||||
[logo]: https://raw.githubusercontent.com/kjodle/d12-message-blocks/master/images/acorn.png "Logo Title Text 2"
|
[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"
|
||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
@ -237,8 +235,7 @@ print s
|
|||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
No language indicated, so no syntax highlighting in Markdown Here
|
No language indicated, so no syntax highlighting in Markdown Here (varies on Github).
|
||||||
(varies on Github).
|
|
||||||
But let's throw in a <b>tag</b>.
|
But let's throw in a <b>tag</b>.
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -263,8 +260,7 @@ Colons can be used to align columns.
|
|||||||
| col 2 is | centered | $12 |
|
| col 2 is | centered | $12 |
|
||||||
| zebra stripes | are neat | $1 |
|
| zebra stripes | are neat | $1 |
|
||||||
|
|
||||||
The outer pipes (|) are optional, and you don't need to make the raw
|
The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.
|
||||||
Markdown line up prettily. You can also use inline Markdown.
|
|
||||||
|
|
||||||
Markdown | Less | Pretty
|
Markdown | Less | Pretty
|
||||||
--- | --- | ---
|
--- | --- | ---
|
||||||
@ -301,9 +297,7 @@ Code:
|
|||||||
|
|
||||||
Quote break.
|
Quote break.
|
||||||
|
|
||||||
> This is a very long line that will still be quoted properly when it wr
|
> This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can *put* **Markdown** into a blockquote.
|
||||||
aps. Oh boy let's keep writing to make sure this is long enough to actua
|
|
||||||
lly wrap for everyone. Oh, you can *put* **Markdown** into a blockquote.
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Results:
|
Results:
|
||||||
@ -394,12 +388,10 @@ Code:
|
|||||||
```
|
```
|
||||||
Here's a line for us to start with.
|
Here's a line for us to start with.
|
||||||
|
|
||||||
This line is separated from the one above by two newlines, so it will be
|
This line is separated from the one above by two newlines, so it will be a *separate paragraph*.
|
||||||
a *separate paragraph*.
|
|
||||||
|
|
||||||
This line is also a separate paragraph, but...
|
This line is also a separate paragraph, but...
|
||||||
This line is only separated by a single newline, so it's a separate line
|
This line is only separated by a single newline, so it's a separate line in the *same paragraph*.
|
||||||
in the *same paragraph*.
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Results:
|
Results:
|
||||||
@ -421,27 +413,25 @@ They can't be added directly but you can add an image with a link to the video l
|
|||||||
Code:
|
Code:
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
<a href="http://www.youtube.com/watch?feature=player_embedded&v=sg90VJjZ
|
<a href="http://www.youtube.com/watch?feature=player_embedded&v=sg90VJjZPKU
|
||||||
PKU " target="_blank"><img src="http://img.youtube.com/vi/sg90VJjZPKU/0.
|
" target="_blank"><img src="http://img.youtube.com/vi/sg90VJjZPKU/0.jpg"
|
||||||
jpg" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" />
|
alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a>
|
||||||
</a>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Results:
|
Results:
|
||||||
|
|
||||||
<a href="http://www.youtube.com/watch?feature=player_embedded&v=sg90VJjZPKU" target="_blank"><img src="http://img.youtube.com/vi/sg90VJjZPKU/0.jpg" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a>
|
<a href="http://www.youtube.com/watch?feature=player_embedded&v=sg90VJjZPKU
|
||||||
|
" target="_blank"><img src="http://img.youtube.com/vi/sg90VJjZPKU/0.jpg"
|
||||||
|
alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a>
|
||||||
|
|
||||||
Or, in pure Markdown, but losing the image sizing and border:
|
Or, in pure Markdown, but losing the image sizing and border:
|
||||||
|
|
||||||
Code:
|
Code:
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
[![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/sg90VJjZPKU/0.jpg)](ht
|
[![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/sg90VJjZPKU/0.jpg)](https://www.youtube.com/watch?v=sg90VJjZPKU)
|
||||||
tps://www.youtube.com/watch?v=sg90VJjZPKU)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Results:
|
Results:
|
||||||
|
|
||||||
[![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/sg90VJjZPKU/0.jpg)](https://www.youtube.com/watch?v=sg90VJjZPKU)
|
[![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/sg90VJjZPKU/0.jpg)](https://www.youtube.com/watch?v=sg90VJjZPKU)
|
||||||
|
|
||||||
The main difference is that the former method allows you to add `target="_blank"` to the `<a>` tag.
|
|
||||||
|
BIN
markdown.pdf
BIN
markdown.pdf
Binary file not shown.
Loading…
Reference in New Issue
Block a user