Added pdf version
This commit is contained in:
parent
4f2969ac8b
commit
e84ff23d33
@ -2,6 +2,14 @@
|
||||
|
||||
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
|
||||
|
||||
|
40
markdown.md
40
markdown.md
@ -166,12 +166,14 @@ Code:
|
||||
Here's our logo (hover to see the title text):
|
||||
|
||||
Inline-style:
|
||||
![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")
|
||||
![alt text](https://raw.githubusercontent.com/kjodle/d12-message-blocks/
|
||||
master/images/acorn.png "Logo Title Text 1")
|
||||
|
||||
Reference-style:
|
||||
![alt text][logo]
|
||||
|
||||
[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"
|
||||
[logo]: https://raw.githubusercontent.com/kjodle/d12-message-blocks/
|
||||
master/images/acorn.png "Logo Title Text 2"
|
||||
```
|
||||
|
||||
Results:
|
||||
@ -179,12 +181,12 @@ Results:
|
||||
Here's our logo (hover to see the title text):
|
||||
|
||||
Inline-style:
|
||||
![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")
|
||||
![alt text](https://raw.githubusercontent.com/kjodle/d12-message-blocks/master/images/acorn.png "Logo Title Text 1")
|
||||
|
||||
Reference-style:
|
||||
![alt text][logo]
|
||||
|
||||
[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"
|
||||
[logo]: https://raw.githubusercontent.com/kjodle/d12-message-blocks/master/images/acorn.png "Logo Title Text 2"
|
||||
|
||||
***
|
||||
|
||||
@ -235,7 +237,8 @@ print s
|
||||
```
|
||||
|
||||
```
|
||||
No language indicated, so no syntax highlighting in Markdown Here (varies on Github).
|
||||
No language indicated, so no syntax highlighting in Markdown Here
|
||||
(varies on Github).
|
||||
But let's throw in a <b>tag</b>.
|
||||
```
|
||||
|
||||
@ -260,7 +263,8 @@ Colons can be used to align columns.
|
||||
| col 2 is | centered | $12 |
|
||||
| zebra stripes | are neat | $1 |
|
||||
|
||||
The outer pipes (|) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.
|
||||
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 | Less | Pretty
|
||||
--- | --- | ---
|
||||
@ -297,7 +301,9 @@ Code:
|
||||
|
||||
Quote break.
|
||||
|
||||
> 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.
|
||||
> This is a very long line that will still be quoted properly when it wr
|
||||
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:
|
||||
@ -388,10 +394,12 @@ Code:
|
||||
```
|
||||
Here's a line for us to start with.
|
||||
|
||||
This line is separated from the one above by two newlines, so it will be a *separate paragraph*.
|
||||
This line is separated from the one above by two newlines, so it will be
|
||||
a *separate paragraph*.
|
||||
|
||||
This line is also a separate paragraph, but...
|
||||
This line is only separated by a single newline, so it's a separate line in the *same paragraph*.
|
||||
This line is only separated by a single newline, so it's a separate line
|
||||
in the *same paragraph*.
|
||||
```
|
||||
|
||||
Results:
|
||||
@ -413,23 +421,23 @@ They can't be added directly but you can add an image with a link to the video l
|
||||
Code:
|
||||
|
||||
```no-highlight
|
||||
<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=sg90VJjZ
|
||||
PKU " target="_blank"><img src="http://img.youtube.com/vi/sg90VJjZPKU/0.
|
||||
jpg" alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" />
|
||||
</a>
|
||||
```
|
||||
|
||||
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:
|
||||
|
||||
Code:
|
||||
|
||||
```no-highlight
|
||||
[![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)](ht
|
||||
tps://www.youtube.com/watch?v=sg90VJjZPKU)
|
||||
```
|
||||
|
||||
Results:
|
||||
|
BIN
markdown.pdf
Normal file
BIN
markdown.pdf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user