redcarpet_yt 0.0.1 → 0.0.2
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: 0f0e4ce61478e68653f05dbf2050660e922c2d2e
|
4
|
+
data.tar.gz: a017322c1021258f6570f2dfeadf0f04601c15a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4254172c8c1587230bd0afe500a6ede54385edbdf9934a47feb77c2e0f1db3bf2dcbfeb75915f2fce3a3468f41d9e98a4a82625d3ca57b9572ab31145bfd84ce
|
7
|
+
data.tar.gz: 9fd6f83634de2a28a8a4783a8c6d778b56bdb7a100dd9847ef083990da598a316530db50409a2c9069b208bbde538417c4145e949bb6375f25b454ba502dfa3a
|
data/lib/redcarpet_yt.rb
CHANGED
@@ -16,7 +16,7 @@ module Redcarpet
|
|
16
16
|
if link.match /((http(s)?:\/\/)?)(www\.)?((youtube\.com\/)|(youtu.be\/))[\S]+/
|
17
17
|
'<iframe width="420" height="315" src="'+link+'" frameborder="0" allowfullscreen></iframe>'
|
18
18
|
else
|
19
|
-
|
19
|
+
Redcarpet::Render::HTML.image(link, title, content)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
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.2'
|
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'
|