From f93d80a78087776fc7eb1b46e0923a5471155ae7 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Thu, 5 Nov 2015 13:59:27 +0800 Subject: [PATCH] feat(docs): better highlighting examples --- _app/_posts/note/2014-06-06-markdown-features-test.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/_app/_posts/note/2014-06-06-markdown-features-test.md b/_app/_posts/note/2014-06-06-markdown-features-test.md index 3e72a3e01..32e8b5b71 100644 --- a/_app/_posts/note/2014-06-06-markdown-features-test.md +++ b/_app/_posts/note/2014-06-06-markdown-features-test.md @@ -15,9 +15,9 @@ tags: miscellaneous end end -## GFM Code Blocks (`fenced_code_blocks`) +## Liquid Tag with `linenos` Support -```ruby +{% highlight ruby linenos %} def show @widget = Widget(params[:id]) respond_to do |format| @@ -25,7 +25,9 @@ def show format.json { render json: @widget } end end -``` +{% endhighlight %} + +## GFM Code Blocks (`fenced_code_blocks`) ```css /* Background color function */