aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2015-03-07 19:21:54 +1100
committerSam Potts <me@sampotts.me>2015-03-07 19:21:54 +1100
commit80d6d806c46158e3af1dbdc4f9e1c25a18c06444 (patch)
treebb26dad1f1e2ea72e92e73674e6aa8deaf255159
parentaeecf4019171f97b1f81022c31f8541df678ab38 (diff)
downloadplyr-80d6d806c46158e3af1dbdc4f9e1c25a18c06444.tar.lz
plyr-80d6d806c46158e3af1dbdc4f9e1c25a18c06444.tar.xz
plyr-80d6d806c46158e3af1dbdc4f9e1c25a18c06444.zip
Formatting
-rw-r--r--readme.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index d32326bb..65f99a6b 100644
--- a/readme.md
+++ b/readme.md
@@ -301,11 +301,11 @@ Here's a list of the methods supported:
Set the media source.
<br><br>
<strong>string</strong><br>
- <em>.source("/path/to/video.mp4")</em><br>
+ `.source("/path/to/video.mp4")`<br>
This will set the "src" attribute on the `video` or `audio` element.
<br><br>
<strong>array</strong><br>
- <em>.source([{ src: "/path/to/video.webm", type: "video/webm", ...more attributes... }, { src: "/path/to/video.mp4", type: "video/mp4", ...more attributes... }])</em><br>
+ `.source([{ src: "/path/to/video.webm", type: "video/webm", ...more attributes... }, { src: "/path/to/video.mp4", type: "video/mp4", ...more attributes... }])`<br>
This will inject a child `source` element for every element in the array with the specified attributes. `src` is the only required attribute although adding `type` is recommended as it helps the browser decide which file to download and play.
</td>
</tr>