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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6f0125c007baffaba36b821f460af3e35c4d73e
4
- data.tar.gz: 191206258c2d9302ac85f2153d6a3efa2ded83b7
3
+ metadata.gz: e38883179a8f1969c6f92ba339fe7a7c51d40541
4
+ data.tar.gz: cad92b0f67adc4f49797e4a36d024997045cf6de
5
5
  SHA512:
6
- metadata.gz: af59ac2328ef55cf83eabf1342ad8f84fe00e5fd8ed74604c50b325a530e9fea07a8d07cc8b50286ca40480ed81dbe015ba100f1f2d8b608f9784e6dc15022e8
7
- data.tar.gz: 3e6f9ef5d0e59cadf9205bec54d531a7cf4f7bed6f1131d961dd1a5ae40c5c2769e86213b50be7c6dc96ee360376ed300715b8bce840bdb71999f903324b987b
6
+ metadata.gz: 810252e2fe68d2a99a0b935c83f34b92ad08e824e0c74f8081234c67554fba57dc22903ac0804cdc5ba5ba76cfa6f6aec70ce3992608043f83b26abbd4f5aa6b
7
+ data.tar.gz: 2000a6a1011b39ff88d8bcd1a52762e5005008b5f92b7d46b0df30772435948ffbbbee7d8a1a3f594416f1d9dc47018e9fd66b786bbff392607fb3286f72bc45
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Cloudinary
3
- VERSION = "1.2.13"
3
+ VERSION = "1.2.14"
4
4
  end
5
5
  end
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.13
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-21 00:00:00.000000000 Z
11
+ date: 2016-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll