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,19 +12,23 @@ for your code snippets, and then finish your code block with three more back tic
#### Syntax #### Syntax
``` language {% codeblock %}
code snippet ``` language
``` code snippet
```
{% endcodeblock %}
### Example #### Example
``` ruby {% codeblock %}
class Fixnum ``` ruby
def prime? class Fixnum
('1' * self) !~ /^1?$|^(11+?)\1+$/ def prime?
end ('1' * self) !~ /^1?$|^(11+?)\1+$/
end end
``` end
```
{% endcodeblock %}
``` ruby ``` ruby
class Fixnum 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 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]" }} %} {{ "{% 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 %} {% video http://s3.imathis.com/video/zero-to-fancy-buttons.mp4 640 320 http://s3.imathis.com/video/zero-to-fancy-buttons.png %}