From 357c8b5c2d79fdce540f8b54b9be0e37ca72e494 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Fri, 29 Jul 2016 20:36:56 -0700 Subject: [PATCH] change code chunk examples in sample post --- _posts/2015-02-20-test-markdown.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/_posts/2015-02-20-test-markdown.md b/_posts/2015-02-20-test-markdown.md index 7f0308e..d91fdfd 100644 --- a/_posts/2015-02-20-test-markdown.md +++ b/_posts/2015-02-20-test-markdown.md @@ -22,16 +22,18 @@ Here's a useless table: How about a yummy crepe? -![Crepe](http://lafenicegelato.com/wp-content/uploads/2014/09/crepes-with-chocolate.jpg) +![Crepe](http://s3-media3.fl.yelpcdn.com/bphoto/cQ1Yoa75m2yUFFbY2xwuqw/348s.jpg) Here's a code chunk: ~~~ -x <- 5 + 10 -print(x) +var foo = function(x) { + return(x + 5); +} +foo(3) ~~~ -And here is some code with syntax highlighting +And here is the same code with syntax highlighting: ```javascript var foo = function(x) { @@ -40,11 +42,11 @@ var foo = function(x) { foo(3) ``` -And here is some more with line numbers +And here is the same code yet again but with line numbers: {% highlight python linenos %} -def bar(x): - return x * 2 - -print bar(2) +var foo = function(x) { + return(x + 5); +} +foo(3) {% endhighlight %}