diff options
Diffstat (limited to '_posts')
-rw-r--r-- | _posts/2014-2-2-Markdown-Cheatsheet.md | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/_posts/2014-2-2-Markdown-Cheatsheet.md b/_posts/2014-2-2-Markdown-Cheatsheet.md index 59c70ef..cf23b79 100644 --- a/_posts/2014-2-2-Markdown-Cheatsheet.md +++ b/_posts/2014-2-2-Markdown-Cheatsheet.md @@ -22,7 +22,7 @@ An image, located within /images - alternative syntax 1 + alternative syntax 2 - an indented list item - + 1. An 2. ordered 3. list @@ -36,20 +36,21 @@ Inline markup styles: > Blockquote >> Nested Blockquote -Code: - - // Code is just text indented a bit - which(is_easy) to_remember(); - -~~~ - -// Markdown extra adds un-indented code blocks too - -if (this_is_more_code == true && !indented) { - // tild wrapped code blocks, also not indented -} +Syntax highlighting can be used by wrapping your code in a liquid tag like so: + +{{ "{% highlight javascript " }}%} +/* Some pointless Javascript */ +var rawr = ["r", "a", "w", "r"]; +{{ "{% endhighlight " }}%} + +creates... + +{% highlight javascript %} -~~~ +/* Some pointless Javascript */ +var rawr = ["r", "a", "w", "r"]; + +{% endhighlight %} Use two trailing spaces on the right |