mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-10-31 23:35:00 -04:00
updated docs for github backtick code blocks and added an example source to video tag
This commit is contained in:
parent
afa5b9d462
commit
531dddd60e
@ -12,19 +12,23 @@ for your code snippets, and then finish your code block with three more back tic
|
|||||||
|
|
||||||
#### Syntax
|
#### Syntax
|
||||||
|
|
||||||
``` language
|
{% codeblock %}
|
||||||
|
``` language
|
||||||
code snippet
|
code snippet
|
||||||
```
|
```
|
||||||
|
{% endcodeblock %}
|
||||||
|
|
||||||
### Example
|
#### Example
|
||||||
|
|
||||||
``` ruby
|
{% codeblock %}
|
||||||
|
``` ruby
|
||||||
class Fixnum
|
class Fixnum
|
||||||
def prime?
|
def prime?
|
||||||
('1' * self) !~ /^1?$|^(11+?)\1+$/
|
('1' * self) !~ /^1?$|^(11+?)\1+$/
|
||||||
end
|
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.
|
||||||
|
@ -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 %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user