redcarpet_yt 0.0.6 → 0.0.7
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 +1 -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: ec8ac2328d0d241ba4e989462ee8b9c62bde8bf0
|
4
|
+
data.tar.gz: 12c19194e473eb6e29726daa2c538beee66072e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2ba6d1795d2d13c8e0d29ce9ea52966b78a4cdc23bd7237dbf7893558b1eac15282b9dc7e9e479f4b935086401d3293c97ba369fae7a155054ec5cc6e1f1d62
|
7
|
+
data.tar.gz: d8c67b4c38a05756fd307de1ef7c7488988f4567638570027e142aac5ee66021a3772d3f0357dcd3d64b40aabe35ac5eaba03088a89b487b55ce5b849503955b
|
data/lib/redcarpet_yt.rb
CHANGED
@@ -15,7 +15,7 @@ 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><div margin-left="auto" margin-right="auto">iframe width="420" height="315" src="//www.youtube.com/embed/'+id+'" frameborder="0" allowfullscreen></iframe></div><p>'
|
19
19
|
else
|
20
20
|
'<img src="'+link+'" title="'+title+'" alt="'+content+'">'
|
21
21
|
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.7'
|
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'
|