redcarpet_yt 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: 0073ab42288c7901e5fdb973c18f48362c0e3662
|
4
|
+
data.tar.gz: 5d26e365f3cc0299cc2470dc6d960bbc9fb3e376
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 199c47ff4a79b08c12864cf0b37d052486077d325e69cd82cd259b47e89e3a43cd47539f34151191e8064098648c4d25e31482f4b729d57ca6abe5b471ece553
|
7
|
+
data.tar.gz: 4b5bf43185826c29eda6a50e2e4b5db61fad2d5bba3a214f0686c09bc017157d23d88a3ab5994f2922adbd88b80666c6106df8d479a1c34eb3235d0e8b2f2b61
|
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><div margin-left="auto" margin-right="auto"
|
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.8'
|
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'
|