jekyll-cloudinary 1.2.13 → 1.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/cloudinary.rb +6 -3
- data/lib/jekyll/cloudinary/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e38883179a8f1969c6f92ba339fe7a7c51d40541
|
4
|
+
data.tar.gz: cad92b0f67adc4f49797e4a36d024997045cf6de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 810252e2fe68d2a99a0b935c83f34b92ad08e824e0c74f8081234c67554fba57dc22903ac0804cdc5ba5ba76cfa6f6aec70ce3992608043f83b26abbd4f5aa6b
|
7
|
+
data.tar.gz: 2000a6a1011b39ff88d8bcd1a52762e5005008b5f92b7d46b0df30772435948ffbbbee7d8a1a3f594416f1d9dc47018e9fd66b786bbff392607fb3286f72bc45
|
data/lib/jekyll/cloudinary.rb
CHANGED
@@ -28,6 +28,9 @@ module Jekyll
|
|
28
28
|
url = site.config['url']
|
29
29
|
settings = site.config['cloudinary']
|
30
30
|
|
31
|
+
# Get Markdown converter
|
32
|
+
markdown_converter = site.find_converter_instance(::Jekyll::Converters::Markdown)
|
33
|
+
|
31
34
|
preset_user_defaults = {}
|
32
35
|
if settings['presets']
|
33
36
|
if settings['presets']['default']
|
@@ -107,18 +110,18 @@ module Jekyll
|
|
107
110
|
|
108
111
|
# Deal with the "caption" attribute as a true <figcaption>
|
109
112
|
if html_attr['caption']
|
110
|
-
caption = html_attr['caption']
|
113
|
+
caption = markdown_converter.convert(html_attr['caption'])
|
111
114
|
html_attr.delete('caption')
|
112
115
|
end
|
113
116
|
|
114
117
|
# alt and title attributes should go only to the <img> even when there is a caption
|
115
118
|
img_attr = ""
|
116
119
|
if html_attr['alt']
|
117
|
-
img_attr << " alt=\"#{html_attr['alt']}\""
|
120
|
+
img_attr << " alt=\"#{markdown_converter.convert(html_attr['alt'])}\""
|
118
121
|
html_attr.delete('alt')
|
119
122
|
end
|
120
123
|
if html_attr['title']
|
121
|
-
img_attr << " title=\"#{html_attr['title']}\""
|
124
|
+
img_attr << " title=\"#{markdown_converter.convert(html_attr['title'])}\""
|
122
125
|
html_attr.delete('title')
|
123
126
|
end
|
124
127
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-cloudinary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Hoizey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|