jekyll-img-converter 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-img-converter.rb +3 -3
- 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: b6cf458e72ce862ef81f217d807c76aeebec1831
|
4
|
+
data.tar.gz: 6ce9ddcb0d416d5ed3321e08d26a9191d979e79b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1061eb3581b9a3218bc8fb4fd531f74851b3a46802fe7433dcff857039ac5cb9384fba9fc135675b4574e0b38df3cf4098b4a47ac95087e76c5e0aa1eb5dc83a
|
7
|
+
data.tar.gz: 43e905e294a442920bce77346fe80b2f144f22a297ffe293019690ad497dd35adc0456af4ecce28aa669d80172dd9f58a3657dc19f6064de20b15a7c023f37db
|
data/lib/jekyll-img-converter.rb
CHANGED
@@ -12,10 +12,10 @@ module Jekyll
|
|
12
12
|
|
13
13
|
imgTag = "<img src=\"#{link}\""
|
14
14
|
|
15
|
-
if (matchData)
|
15
|
+
if (matchData)
|
16
16
|
style = matchData[2]
|
17
|
-
|
18
|
-
|
17
|
+
stripContent = content.gsub(matchData.to_s,'').rstrip
|
18
|
+
|
19
19
|
imgTag += " alt=\"#{stripContent}\" style=\"#{style}\""
|
20
20
|
else
|
21
21
|
imgTag += " alt=\"#{content}\""
|