diff --git a/README.md b/README.md index a15f49b..06cdca1 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/markdown.md b/markdown.md index 19eebd0..36b11a1 100644 --- a/markdown.md +++ b/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 tag. ``` @@ -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 - +IMAGE ALT TEXT HERE + ``` Results: - +IMAGE ALT TEXT HERE 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: diff --git a/markdown.pdf b/markdown.pdf new file mode 100644 index 0000000..e29ef0e Binary files /dev/null and b/markdown.pdf differ