redcarpet_yt 0.0.2 → 0.0.3
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: 2a13c5a62467b8d82ecc37706d48c75244a45392
|
4
|
+
data.tar.gz: 2819ba1f6a5f6b29bc85d26fa99c1661d9510103
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63b1f0cfca70e957bbe007d9604182d77bda457d58dd5f1b6350e50c1b2bbd76ea9d2e7d814ee41fd0136816df7b7a008cd9ea30d59f6f95dbc52ab17bd5d057
|
7
|
+
data.tar.gz: dcf05f1c4ce50ce030f603779c88a6db2eebbb6f55194cf9b9aff82c74abab4f19467e210cfe372cdb6271882da3de4f3e8c1f7b93726e2e728559fd9192f86d
|
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
|
+
'<img src="'+link+'" title="'+title+'" alt="'+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.3'
|
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'
|