updated docs for github backtick code blocks and added an example source to video tag

This commit is contained in:
Brandon Mathis 2011-07-28 22:24:20 -04:00
parent afa5b9d462
commit 531dddd60e
2 changed files with 20 additions and 13 deletions

View File

@ -12,12 +12,15 @@ for your code snippets, and then finish your code block with three more back tic
#### Syntax
{% codeblock %}
``` language
code snippet
```
{% endcodeblock %}
### Example
#### Example
{% codeblock %}
``` ruby
class Fixnum
def prime?
@ -25,6 +28,7 @@ for your code snippets, and then finish your code block with three more back tic
end
end
```
{% endcodeblock %}
``` ruby
class Fixnum
@ -35,4 +39,4 @@ for your code snippets, and then finish your code block with three more back tic
```
This is a nice, lightweight way to add a highlighted code snippet. For features like titles and links you'll want to look
at the `codeblock` or `include_code` liquid tags.
at the [codeblock](/docs/plugins/code-block/) or [include_code](/docs/plugins/include-code/) liquid tags.

View File

@ -13,7 +13,10 @@ detect mp4 video support ([using Modernizr](http://modernizr.com)) and automatic
{{ "{% video url/to/video [width height] [url/to/poster]" }} %}
#### Demo
#### Example
{{ "{% video http://s3.imathis.com/video/zero-to-fancy-buttons.mp4 640 320 http://s3.imathis.com/video/zero-to-fancy-buttons.png" }} %}
{% video http://s3.imathis.com/video/zero-to-fancy-buttons.mp4 640 320 http://s3.imathis.com/video/zero-to-fancy-buttons.png %}