redcarpet_yt 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redcarpet_yt.rb +5 -1
- data/redcarpet_yt.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14effa2c47e3f120cde37ecee3b89a758e407fce
|
4
|
+
data.tar.gz: 19420742b71490e0a21fc23b4e5538b490fc70ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecd21cba8fd89878768fc5e2a3696a90d649399ff0b09ed4ddfcab4b5de5b28cb29ba70bf479ea67d3bd7a00c8093fa2bd4502d2025fd9f72b35f8b6ef5a6e11
|
7
|
+
data.tar.gz: 0f7a559bd4c7e06e9ec4abeeb0a739209cc922be43d1f16cfb8ae95eb841fb08b36f888ac89e9b66e07aea540ab55108a749335d33e5d4e7852ee81390c4f502
|
data/lib/redcarpet_yt.rb
CHANGED
@@ -15,7 +15,11 @@ module Redcarpet
|
|
15
15
|
# Check if we have a YouTube video
|
16
16
|
if link.match /((http(s)?:\/\/)?)(www\.)?((youtube\.com\/)|(youtu.be\/))[\S]+/
|
17
17
|
id = get_youtube_video_id(link)
|
18
|
-
'</p
|
18
|
+
'</p>
|
19
|
+
<div position="relative" padding-bottom="56.25%" padding-top="25px" height="0">
|
20
|
+
<iframe position="absolute" top="0" bottom="0" width="100%" height="100%" src="//www.youtube.com/embed/'+id+'" frameborder="0" allowfullscreen></iframe>
|
21
|
+
</div>
|
22
|
+
<p>'
|
19
23
|
else
|
20
24
|
'<img src="'+link+'" title="'+title+'" alt="'+content+'">'
|
21
25
|
end
|
data/redcarpet_yt.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'redcarpet_yt'
|
4
|
-
s.version = '0.0.
|
4
|
+
s.version = '0.0.9'
|
5
5
|
s.summary = "Markdown that smells nice, now with YouTube embedding"
|
6
6
|
s.description = 'A fast, safe and extensible Markdown to (X)HTML parser, with YouTube embedding, based on Redcarpet'
|
7
7
|
s.date = '2016-03-31'
|